mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 09:35:21 +00:00
GDI: pitch seems to be reported wrong? this looks correct now
This commit is contained in:
parent
c09996cd22
commit
8d9a43eec6
@ -288,7 +288,7 @@ static bool gdi_gfx_frame(void *data, const void *frame,
|
||||
//DeleteObject(brush);
|
||||
|
||||
info->bmiHeader.biBitCount = bits;
|
||||
info->bmiHeader.biWidth = pitch;
|
||||
info->bmiHeader.biWidth = pitch / 2;
|
||||
info->bmiHeader.biHeight = -height;
|
||||
info->bmiHeader.biPlanes = 1;
|
||||
info->bmiHeader.biSize = sizeof(BITMAPINFOHEADER) + (3 * sizeof(RGBQUAD));
|
||||
@ -316,7 +316,7 @@ static bool gdi_gfx_frame(void *data, const void *frame,
|
||||
ret = StretchBlt(winDC,
|
||||
0, 0,
|
||||
mode.width, mode.height,
|
||||
memDC, 0, 0, width, height / 2, SRCCOPY);
|
||||
memDC, 0, 0, width, height, SRCCOPY);
|
||||
|
||||
//printf("BitBlt: %d\n", ret);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user