[Bug 47076] LoadImage with option LR_SHARED and specified resolution does loading only that icon resolution , skipping others
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Apr 28 22:47:06 CDT 2019
https://bugs.winehq.org/show_bug.cgi?id=47076
--- Comment #3 from nikolaysemenkov at gmail.com ---
To be clear, below is the code to reproduce the bug. The icon details were
specified in previous message.
The code to see the bug:
LoadImage(HInstance, MAKEINTRESOURCE(iIconLarge), IMAGE_ICON, 32, 32,
LR_DEFAULTCOLOR | LR_SHARED);
HICON hIconTest = (HICON)LoadImage(HInstance, MAKEINTRESOURCE(iIconLarge),
IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR | LR_SHARED);
// Get info
ICONINFO iconInfo;
if (GetIconInfo(hIconTest, &iconInfo)) {
BITMAP BMInf;
GetObject(iconInfo.hbmColor, sizeof(BMInf), &BMInf);
printf("xxxxxxxxxxxxxxx result: %d %d", BMInf.bmWidth, BMInf.bmHeight);
return;
}
On windows result for a 16x16 icon is 16x16.
On wine the result is 32x32
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list