winresource, not winres: winres has been unmaintained since 2021 and this is its maintained fork. Gated to cfg(windows) as a target build-dependency, so no other platform resolves it at all. The manifest declares longPathAware and NOTHING else. Qt 6 sets PerMonitorV2 itself at startup and a manifest DPI declaration is immutable, so the two together either log a permanent COM error 0x5 or degrade scaling - Qt owns DPI awareness. The .ico carries 256/128/64/48/32. The four small entries are BMP and only 256 is PNG: measured on this box, System.Drawing.Icon (GDI+) throws ArgumentOutOfRangeException in ToBitmap() on a PNG-payload entry, while WIC decodes it. 256 has to be PNG because the directory encodes its size as 0. Pixels verified against the source PNG at four points including an asymmetric one, which is what proves the BGRA order and the bottom-up flip. cc
360 KiB
360 KiB