I'm using Wine-20010326 (although this problem has been seen for a while, including the Wine version that comes with the Mandrake 7.2 distribution), and Quickbooks Pro 5. Anywhere text in an input box is highlighted (inverse), the text goes white and the background stays white. Is this something anyone else has encountered? Are there registry entries to change, or something? Thanks, -Dan dengel@sourceharvest.com
Dan Engel <dengel@sourceharvest.com> wrote:> I'm using Wine-20010326 (although this problem has been seen for a > while, including the Wine version that comes with the Mandrake 7.2 > distribution), and Quickbooks Pro 5. Anywhere text in an input box is > highlighted (inverse), the text goes white and the background stays > white.> Is this something anyone else has encountered? Are there registry > entries to change, or something?Nope. Run --debugmsg +relay,+text,+string. Then check why the text color is wrong. Look for [GS]etTextColor calls, and for changes to the hdc (display context) setup. Check out search.microsoft.com/default.asp for documentation. Andreas Mohr
"Dan Engel" <dengel@sourceharvest.com> wrote:> Okay, what seems to work is in the EDIT_PaintText function, setting the > background mode to OPAQUE (and then restoring it) in the case of reverse > video.Perhaps I would be better to add SetBkMode(hDC, OPAQUE) somewhere in DEFWND_ControlColor (wine/windows/defwnd.c, starting from line 105)? It would fix much more potential problems with drawing in Wine.