March 18, 2026
2:59 a.m.
On Wed Mar 18 02:48:25 2026 +0000, Brendan McGrath wrote:
`create_surface` in `winex11.drv/bitblt.c` calls `NtGdiDdDDICreateDCFromMemory`. This creates the GDI object that is stored in `color_bitmap` (and later fetched by `window_surface_get_color`). Is that what you mean? Cherry-picking 18339eb0 fixes the issue (and as you say, produces a white screen instead of black). Oh - I think I see what you mean. If `bitmap` isn't already set, it will call `NtGdiCreateDIBSection` in `window_surface_create`. But in this case it is already set (with the `HBITMAP` returned by `NtGdiDdDDICreateDCFromMemory`).
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10356#note_132589