From 5a005ec1e8dc56e20330dfe1a0e6069a31e03848 Mon Sep 17 00:00:00 2001 From: Ian Bryant <71623860+recidivism5@users.noreply.github.com> Date: Wed, 26 Apr 2023 19:20:16 -0400 Subject: [PATCH] revert to BI_BITFIELDS --- fenster.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;