#177 fix text drawing
This commit is contained in:
parent
7683e52f21
commit
8ea545ec96
1 changed files with 6 additions and 1 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 + guard_lines);
|
||||
dst_surface->bmi->bmiHeader.biHeight = -((int)dst_surface->height);
|
||||
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,6 +1292,11 @@ 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