http://bugs.winehq.org/show_bug.cgi?id=30103
Bug #: 30103 Summary: Static controls with bitmap do not display correct background. Product: Wine Version: 1.4-rc6 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 AssignedTo: wine-bugs@winehq.org ReportedBy: carlo.bramix@libero.it Classification: Unclassified
Created attachment 39234 --> http://bugs.winehq.org/attachment.cgi?id=39234 Screenshot with difference between Windows and WINE
An image static control does not seem painting the background around the image with the right color. The default color used for filling the area around the image is not COLOR_BTNFACE (I guess you selected that one) but instead it seems to be filled with a solid brush created with the color in the origin of the image, at coordinates (0,0). I attached a screenshot that it shows the difference between the expected result and the current result obtained in WINE. This is a trick tipically used to reduce the size of the bitmap since the image control "expands" the color we want without any additional work. Sometimes you can see this artifact in some "about box" of some software, however I also attached a demo programme that you can use to reproduce the defect.
Sincerely,
Carlo Bramini
http://bugs.winehq.org/show_bug.cgi?id=30103
--- Comment #1 from Carlo Bramini carlo.bramix@libero.it 2012-03-07 14:45:48 CST --- Created attachment 39235 --> http://bugs.winehq.org/attachment.cgi?id=39235 Test programme
http://bugs.winehq.org/show_bug.cgi?id=30103
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=30103
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #2 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2012-03-07 20:55:36 CST --- Confirming.
http://bugs.winehq.org/show_bug.cgi?id=30103
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |trivial
http://bugs.winehq.org/show_bug.cgi?id=30103
--- Comment #3 from Carlo Bramini carlo.bramix@libero.it --- Created attachment 49079 --> http://bugs.winehq.org/attachment.cgi?id=49079 Screenshot with theme activated
It is interesting to notice that this bug applies *ONLY* to static control implemented in USER32. The same application, when it uses themed controls from COMCTL32, does not expand the background color as it does with the classic theme. For an example, a screenshot is attached with the test application running on Windows XP with its default theme.
https://bugs.winehq.org/show_bug.cgi?id=30103
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #4 from super_man@post.com --- still no background in right color 1.7.49
https://bugs.winehq.org/show_bug.cgi?id=30103
--- Comment #5 from super_man@post.com --- (In reply to super_man from comment #4)
still no background in right color 1.7.49
The same wine 1.9.7 and staging 1.9.7
https://bugs.winehq.org/show_bug.cgi?id=30103
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #6 from winetest@luukku.com --- (In reply to super_man from comment #5)
(In reply to super_man from comment #4)
still no background in right color 1.7.49
The same wine 1.9.7 and staging 1.9.7
The same wine 1.9.20-git and staging 1.9.20
https://bugs.winehq.org/show_bug.cgi?id=30103
--- Comment #7 from winetest@luukku.com --- (In reply to winetest from comment #6)
(In reply to super_man from comment #5)
(In reply to super_man from comment #4)
still no background in right color 1.7.49
The same wine 1.9.7 and staging 1.9.7
The same wine 1.9.20-git and staging 1.9.20
Still lacking backgroud color wine 2.7-git and staging 2.7.
https://bugs.winehq.org/show_bug.cgi?id=30103
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Fixed by SHA1| |927956db67544d84da6dc27922b | |b64ebd31f64aa
--- Comment #8 from Nikolay Sivov bunglehead@gmail.com --- Marking fixed, https://source.winehq.org/git/wine.git/?a=commit;h=927956db67544d84da6dc2792....
https://bugs.winehq.org/show_bug.cgi?id=30103
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.6.
https://bugs.winehq.org/show_bug.cgi?id=30103
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |3.0.x
https://bugs.winehq.org/show_bug.cgi?id=30103
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mstefani@winehq.org Target Milestone|3.0.x |---
--- Comment #10 from Michael Stefaniuc mstefani@winehq.org --- Removing 3.0.x target milestone. According to Nikolay this one has to wait for 4.0.