mirror of
https://github.com/zserge/fenster.git
synced 2025-04-12 10:48:41 +03:00
revert to BI_BITFIELDS
This commit is contained in:
@ -182,7 +182,7 @@ static LRESULT CALLBACK fenster_wndproc(HWND hwnd, UINT msg, WPARAM wParam,
|
||||
HDC memdc = CreateCompatibleDC(hdc);
|
||||
HBITMAP hbmp = CreateCompatibleBitmap(hdc, f->width, f->height);
|
||||
HBITMAP oldbmp = SelectObject(memdc, hbmp);
|
||||
BINFO bi = {{sizeof(bi), f->width, -f->height, 1, 32, BI_RGB}};
|
||||
BINFO bi = {{sizeof(bi), f->width, -f->height, 1, 32, BI_BITFIELDS}};
|
||||
bi.bmiColors[0].rgbRed = 0xff;
|
||||
bi.bmiColors[1].rgbGreen = 0xff;
|
||||
bi.bmiColors[2].rgbBlue = 0xff;
|
||||
|
Reference in New Issue
Block a user