mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
parent
27812d69f4
commit
b8fd6d1f81
1
inc/dd.h
1
inc/dd.h
@ -135,6 +135,7 @@ typedef struct CNCDDRAW
|
|||||||
BOOL wine;
|
BOOL wine;
|
||||||
HCURSOR old_cursor;
|
HCURSOR old_cursor;
|
||||||
int show_cursor_count;
|
int show_cursor_count;
|
||||||
|
BOOL novidmem;
|
||||||
BOOL accurate_timers;
|
BOOL accurate_timers;
|
||||||
BOOL resizable;
|
BOOL resizable;
|
||||||
BOOL nonexclusive;
|
BOOL nonexclusive;
|
||||||
|
@ -38,6 +38,7 @@ void cfg_load()
|
|||||||
g_ddraw->fixpitch = cfg_get_bool("fixpitch", FALSE);
|
g_ddraw->fixpitch = cfg_get_bool("fixpitch", FALSE);
|
||||||
g_ddraw->fixchilds = cfg_get_int("fixchilds", FIX_CHILDS_DETECT_PAINT);
|
g_ddraw->fixchilds = cfg_get_int("fixchilds", FIX_CHILDS_DETECT_PAINT);
|
||||||
g_ddraw->fixwndprochook = cfg_get_bool("fixwndprochook", FALSE);
|
g_ddraw->fixwndprochook = cfg_get_bool("fixwndprochook", FALSE);
|
||||||
|
g_ddraw->novidmem = cfg_get_bool("novidmem", FALSE);
|
||||||
g_ddraw->fixnotresponding = cfg_get_bool("fixnotresponding", FALSE);
|
g_ddraw->fixnotresponding = cfg_get_bool("fixnotresponding", FALSE);
|
||||||
g_ddraw->locktopleft = cfg_get_bool("locktopleft", FALSE);
|
g_ddraw->locktopleft = cfg_get_bool("locktopleft", FALSE);
|
||||||
g_ddraw->releasealt = cfg_get_bool("releasealt", FALSE);
|
g_ddraw->releasealt = cfg_get_bool("releasealt", FALSE);
|
||||||
@ -730,18 +731,21 @@ static void cfg_create_ini()
|
|||||||
"fixmousehook=true\n"
|
"fixmousehook=true\n"
|
||||||
"noactivateapp=true\n"
|
"noactivateapp=true\n"
|
||||||
"releasealt=true\n"
|
"releasealt=true\n"
|
||||||
|
"novidmem=true\n"
|
||||||
"\n"
|
"\n"
|
||||||
"; Jagged Alliance 2: Wildfire\n"
|
"; Jagged Alliance 2: Wildfire\n"
|
||||||
"[WF6]\n"
|
"[WF6]\n"
|
||||||
"fixmousehook=true\n"
|
"fixmousehook=true\n"
|
||||||
"noactivateapp=true\n"
|
"noactivateapp=true\n"
|
||||||
"releasealt=true\n"
|
"releasealt=true\n"
|
||||||
|
"novidmem=true\n"
|
||||||
"\n"
|
"\n"
|
||||||
"; Jagged Alliance 2 - UC mod\n"
|
"; Jagged Alliance 2 - UC mod\n"
|
||||||
"[JA2_UC]\n"
|
"[JA2_UC]\n"
|
||||||
"fixmousehook=true\n"
|
"fixmousehook=true\n"
|
||||||
"noactivateapp=true\n"
|
"noactivateapp=true\n"
|
||||||
"releasealt=true\n"
|
"releasealt=true\n"
|
||||||
|
"novidmem=true\n"
|
||||||
"\n"
|
"\n"
|
||||||
"; Kings Quest 8\n"
|
"; Kings Quest 8\n"
|
||||||
"[Mask]\n"
|
"[Mask]\n"
|
||||||
@ -936,6 +940,7 @@ static void cfg_create_ini()
|
|||||||
"fixmousehook=true\n"
|
"fixmousehook=true\n"
|
||||||
"noactivateapp=true\n"
|
"noactivateapp=true\n"
|
||||||
"releasealt=true\n"
|
"releasealt=true\n"
|
||||||
|
"novidmem=true\n"
|
||||||
"\n"
|
"\n"
|
||||||
"; Worms Armageddon\n"
|
"; Worms Armageddon\n"
|
||||||
"[WA]\n"
|
"[WA]\n"
|
||||||
|
@ -852,7 +852,7 @@ HRESULT dds_GetSurfaceDesc(IDirectDrawSurfaceImpl* This, LPDDSURFACEDESC lpDDSur
|
|||||||
lpDDSurfaceDesc->ddpfPixelFormat.dwRGBBitCount = This->bpp;
|
lpDDSurfaceDesc->ddpfPixelFormat.dwRGBBitCount = This->bpp;
|
||||||
lpDDSurfaceDesc->ddsCaps.dwCaps = This->caps;
|
lpDDSurfaceDesc->ddsCaps.dwCaps = This->caps;
|
||||||
|
|
||||||
if (This->caps & (DDSCAPS_PRIMARYSURFACE | DDSCAPS_BACKBUFFER))
|
if (!g_ddraw->novidmem || (This->caps & (DDSCAPS_PRIMARYSURFACE | DDSCAPS_BACKBUFFER)))
|
||||||
{
|
{
|
||||||
lpDDSurfaceDesc->ddsCaps.dwCaps |= DDSCAPS_VIDEOMEMORY;
|
lpDDSurfaceDesc->ddsCaps.dwCaps |= DDSCAPS_VIDEOMEMORY;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user