diff --git a/fenster.h b/fenster.h index 43268c2..2d78da6 100644 --- a/fenster.h +++ b/fenster.h @@ -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;