1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

add dummy callback + new preset

This commit is contained in:
FunkyFr3sh 2018-10-30 19:38:32 +01:00
parent 90a31e1daf
commit 82b245228c
3 changed files with 9 additions and 1 deletions

View File

@ -1263,6 +1263,10 @@ HRESULT WINAPI DirectDrawEnumerateA(LPDDENUMCALLBACK lpCallback, LPVOID lpContex
FreeLibrary(hddraw);
}
*/
if (lpCallback)
lpCallback(NULL, "display", "(null)", lpContext);
return DD_OK;
}

View File

@ -232,6 +232,10 @@ static void CreateSettingsIni()
"posX=0\n"
"posY=0\n"
"\n"
"[olwin]\n"
"noactivateapp=true\n"
"sleep=10\n"
"\n"
, fh);
fclose(fh);

View File

@ -309,7 +309,7 @@ HRESULT __stdcall ddraw_surface_GetSurfaceDesc(IDirectDrawSurfaceImpl *This, LPD
lpDDSurfaceDesc->dwHeight = This->height;
lpDDSurfaceDesc->lPitch = This->lPitch;
lpDDSurfaceDesc->lpSurface = This->surface;
lpDDSurfaceDesc->ddpfPixelFormat.dwFlags = DDPF_RGB;
lpDDSurfaceDesc->ddpfPixelFormat.dwFlags = DDPF_PALETTEINDEXED8 | DDPF_RGB;
lpDDSurfaceDesc->ddpfPixelFormat.dwRGBBitCount = This->bpp;
if (This->bpp == 16)