revert to BI_BITFIELDS

This commit is contained in:
Ian Bryant
2023-04-26 19:20:16 -04:00
committed by GitHub
parent 3441e1715e
commit 5a005ec1e8

View File

@ -182,7 +182,7 @@ static LRESULT CALLBACK fenster_wndproc(HWND hwnd, UINT msg, WPARAM wParam,
HDC memdc = CreateCompatibleDC(hdc); HDC memdc = CreateCompatibleDC(hdc);
HBITMAP hbmp = CreateCompatibleBitmap(hdc, f->width, f->height); HBITMAP hbmp = CreateCompatibleBitmap(hdc, f->width, f->height);
HBITMAP oldbmp = SelectObject(memdc, hbmp); 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[0].rgbRed = 0xff;
bi.bmiColors[1].rgbGreen = 0xff; bi.bmiColors[1].rgbGreen = 0xff;
bi.bmiColors[2].rgbBlue = 0xff; bi.bmiColors[2].rgbBlue = 0xff;