http://bugs.winehq.org/show_bug.cgi?id=23194
Summary: Mathematica notebook background black when Desktop Integration is used Product: Wine Version: 1.2-rc2 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: b7.10110111@gmail.com
Created an attachment (id=28859) --> (http://bugs.winehq.org/attachment.cgi?id=28859) Black background
I have tried Royale and Luna themes, applying them via winecfg, and in both cases Mathematica notebook background gets black as in the screenshot. When no theme is used, it's ok.
http://bugs.winehq.org/show_bug.cgi?id=23194
--- Comment #1 from Ruslan b7.10110111@gmail.com 2010-10-21 10:07:29 CDT --- The same problem with GIMP GUI.
http://bugs.winehq.org/show_bug.cgi?id=23194
Ruslan b7.10110111@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |uxtheme Summary|Mathematica notebook |Black background in some |background black when |apps when Desktop |Desktop Integration is used |Integration is used
--- Comment #2 from Ruslan b7.10110111@gmail.com 2011-10-24 13:04:45 CDT --- After some experiments it appeared that uxtheme.GetThemeSysColor() always returns 0 for GIMP. Changing its return value to some hard-coded value directly affects background color.
http://bugs.winehq.org/show_bug.cgi?id=23194
--- Comment #3 from Ruslan b7.10110111@gmail.com 2011-10-24 13:46:19 CDT --- According to http://msdn.microsoft.com/en-us/library/windows/desktop/bb759776(v=vs.85).as... , GetThemeSysColor() may just return GetSysColor(iColorID). What if we change all its messy logic to this simple expression? If I do this locally, I have GIMP working OK (colors are just the same as in windows, as far as I have compared), and I guess the same would be with Mathematica (which I have deleted since reporting this bug).
http://bugs.winehq.org/show_bug.cgi?id=23194
--- Comment #4 from Ruslan b7.10110111@gmail.com 2011-10-24 14:32:31 CDT --- Created attachment 37112 --> http://bugs.winehq.org/attachment.cgi?id=37112 Supposed fix
In fact, a less intrusive change would be just to remove -TMT_FIRSTCOLOR from GetSysColor() call already present. GetThemeSysColor() and GetSysColor() expect the same type of color ID, so this subtraction looks wrong. Am I right?
http://bugs.winehq.org/show_bug.cgi?id=23194
Ruslan b7.10110111@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kevin@plop.org
--- Comment #5 from Ruslan b7.10110111@gmail.com 2011-10-24 14:34:27 CDT --- CC'ing original author given by git-blame.
http://bugs.winehq.org/show_bug.cgi?id=23194
Ruslan b7.10110111@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #6 from Ruslan b7.10110111@gmail.com 2011-11-01 00:22:52 CDT --- Fixed by 996b451c2df2d133f13d9dfe0b6eedd057460f78.
http://bugs.winehq.org/show_bug.cgi?id=23194
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |996b451c2df2d133f13d9dfe0b6 | |eedd057460f78
http://bugs.winehq.org/show_bug.cgi?id=23194
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2011-11-04 14:14:49 CDT --- Closing bugs fixed in 1.3.32.