parent
8ea545ec96
commit
5b00653cc5
1 changed files with 1 additions and 6 deletions
|
@ -1224,7 +1224,7 @@ HRESULT dd_CreateSurface(
|
|||
dst_surface->bmi = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, bmi_size);
|
||||
dst_surface->bmi->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
|
||||
dst_surface->bmi->bmiHeader.biWidth = aligned_width;
|
||||
dst_surface->bmi->bmiHeader.biHeight = -((int)dst_surface->height);
|
||||
dst_surface->bmi->bmiHeader.biHeight = -((int)dst_surface->height + guard_lines);
|
||||
dst_surface->bmi->bmiHeader.biPlanes = 1;
|
||||
dst_surface->bmi->bmiHeader.biBitCount = dst_surface->bpp;
|
||||
dst_surface->bmi->bmiHeader.biCompression = dst_surface->bpp == 8 ? BI_RGB : BI_BITFIELDS;
|
||||
|
@ -1292,11 +1292,6 @@ HRESULT dd_CreateSurface(
|
|||
}
|
||||
}
|
||||
|
||||
if (!dst_surface->surface_mapping)
|
||||
{
|
||||
dst_surface->bmi->bmiHeader.biHeight = -((int)dst_surface->height + guard_lines);
|
||||
}
|
||||
|
||||
dst_surface->bitmap =
|
||||
CreateDIBSection(
|
||||
dst_surface->hdc,
|
||||
|
|
Loading…
Reference in a new issue