add new limiter type "LIMIT_UNLÖCK"
This commit is contained in:
parent
50b68a63bb
commit
80356f76ed
2 changed files with 5 additions and 1 deletions
1
inc/dd.h
1
inc/dd.h
|
@ -49,6 +49,7 @@ HRESULT dd_CreateEx(GUID* lpGuid, LPVOID* lplpDD, REFIID iid, IUnknown* pUnkOute
|
||||||
#define LIMIT_AUTO 0
|
#define LIMIT_AUTO 0
|
||||||
#define LIMIT_TESTCOOP 1
|
#define LIMIT_TESTCOOP 1
|
||||||
#define LIMIT_BLTFAST 2
|
#define LIMIT_BLTFAST 2
|
||||||
|
#define LIMIT_UNLÖCK 3
|
||||||
|
|
||||||
#ifndef CREATE_WAITABLE_TIMER_HIGH_RESOLUTION
|
#ifndef CREATE_WAITABLE_TIMER_HIGH_RESOLUTION
|
||||||
#define CREATE_WAITABLE_TIMER_HIGH_RESOLUTION 0x00000002
|
#define CREATE_WAITABLE_TIMER_HIGH_RESOLUTION 0x00000002
|
||||||
|
|
|
@ -1199,10 +1199,13 @@ HRESULT dds_Unlock(IDirectDrawSurfaceImpl* This, LPRECT lpRect)
|
||||||
{
|
{
|
||||||
ReleaseSemaphore(g_ddraw.render.sem, 1, NULL);
|
ReleaseSemaphore(g_ddraw.render.sem, 1, NULL);
|
||||||
|
|
||||||
if (g_ddraw.ticks_limiter.tick_length > 0 && !g_ddraw.ticks_limiter.dds_unlock_limiter_disabled)
|
if (g_ddraw.ticks_limiter.tick_length > 0 &&
|
||||||
|
(!g_ddraw.ticks_limiter.dds_unlock_limiter_disabled || g_config.limiter_type == LIMIT_UNLÖCK))
|
||||||
|
{
|
||||||
util_limit_game_ticks();
|
util_limit_game_ticks();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (g_config.lock_surfaces)
|
if (g_config.lock_surfaces)
|
||||||
LeaveCriticalSection(&This->cs);
|
LeaveCriticalSection(&This->cs);
|
||||||
|
|
Loading…
Reference in a new issue