March 25, 2026
1:49 p.m.
On Wed Mar 25 13:31:34 2026 +0000, Zhao Yi wrote:
According to the MSDN introduction for the function UpdateLayeredWindow, it states: "_If the shape and visual context of the window are not changing, hdcSrc can be NULL._" (link:https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-updat...), Based on this, I think that when the src and dst are the same, there is no need to blit anything. But I think this has little to do with the bug. We cannot confirm whether hdc_dst is consistent with hdc_src when hdc_src is the window's own DC. So I think the solution here is to introduce a temporary DC to store hdc_src when hdc_src is the window's own DC.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10324#note_133716