add workaround for CreateDIBSection offset bug
This commit is contained in:
parent
2c2fd7feb6
commit
6ec7c0c701
1 changed files with 1 additions and 1 deletions
|
@ -1553,7 +1553,7 @@ HRESULT dd_CreateSurface(
|
||||||
if (dst_surface->hdc)
|
if (dst_surface->hdc)
|
||||||
InterlockedIncrement(&g_dds_gdi_handles);
|
InterlockedIncrement(&g_dds_gdi_handles);
|
||||||
|
|
||||||
DWORD map_offset = dst_surface->pitch * g_config.guard_lines;
|
DWORD map_offset = 65280; // CreateDIBSection cannot handle values higher than a WORD - 0xFF00 (guard lines);
|
||||||
|
|
||||||
dst_surface->mapping =
|
dst_surface->mapping =
|
||||||
CreateFileMappingA(
|
CreateFileMappingA(
|
||||||
|
|
Loading…
Reference in a new issue