mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
GDI: fix rendering of 32-bit color cores
This commit is contained in:
parent
e4bdc5ce8b
commit
5eaf00b39d
@ -212,7 +212,7 @@ static bool gdi_gfx_frame(void *data, const void *frame,
|
||||
bmp_old = (HBITMAP)SelectObject(memDC, bmp);
|
||||
|
||||
info->bmiHeader.biBitCount = bits;
|
||||
info->bmiHeader.biWidth = pitch / 2;
|
||||
info->bmiHeader.biWidth = pitch / (bits / 8);
|
||||
info->bmiHeader.biHeight = -height;
|
||||
info->bmiHeader.biPlanes = 1;
|
||||
info->bmiHeader.biSize = sizeof(BITMAPINFOHEADER) + (3 * sizeof(RGBQUAD));
|
||||
|
Loading…
x
Reference in New Issue
Block a user