3 Sep
2024
3 Sep
'24
10:43 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/uxtheme/msstyles.c:
+ + if (dib.dsBm.bmBitsPixel == 24) + { + int y; + + stride = (dib.dsBmih.biWidth * 3 + 3) & ~3; + p = dib.dsBm.bmBits; + for (y = 0; y < dib.dsBmih.biHeight; ++y) + { + p = (BYTE *)dib.dsBm.bmBits + stride * y; + for (n = 0; n < dib.dsBmih.biWidth; ++n, p += 3) + { + if (RGB(p[0], p[1], p[2]) == DEFAULT_TRANSPARENT_COLOR) + { + *has_default_transparent_colour = TRUE; + break; This should be a return.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6401#note_80840