mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
Revert "#177 fix text drawing"
This reverts commit 8ea545ec96c4b66b9bcfe5f8dbb7bcaa4bc34918.
This commit is contained in:
parent
8ea545ec96
commit
5b00653cc5
@ -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…
x
Reference in New Issue
Block a user