https://bugs.winehq.org/show_bug.cgi?id=45380
Bug ID: 45380 Summary: Text highlighting seems to clip differently than in windows Product: Wine Version: 3.6 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 Assignee: wine-bugs@winehq.org Reporter: ryampolsky@yahoo.com Distribution: ---
Created attachment 61693 --> https://bugs.winehq.org/attachment.cgi?id=61693 'setTimeshift' highlighted. 'set' is white-on-white
In the EditPlus text editor, when you search for text, if the search string is embedded in a larger string, the part of the string that precedes the search string is drawn in 'white on white', and 'disappears'. This can be remedied by changing the foreground color for selected text in EditPlus to a dark color instead of white - but it doesn't happen in Windows.
My guess is that EditPlus is drawing the text 'clipped' to the selected area and using Windows 'ETO_OPAQUE' option to get the selected background color drawn in a rectangle over the selected text, but it's also probably asking for the text to be clipped to that rectangle, so the part prior to the selection doesn't get drawn. At least that's what it looks like in Windows. But under WINE, the selected part is drawn fine (white on selection background), but the prior part is drawn using the white selection color on the normal white background.
See attachments. In both cases, EditPlus is highlighting the searched string 'Timeshift' in the word 'setTimeshift'. But in the first (white-on-white) example, I'm using the default selection colors (white foreground). In the second (black-on_white), I've changed the selection colors so that the foreground color is black.
https://bugs.winehq.org/show_bug.cgi?id=45380
--- Comment #1 from ryampolsky@yahoo.com --- Created attachment 61694 --> https://bugs.winehq.org/attachment.cgi?id=61694 'setTimeshift' highlighted. 'set' is black-on-white
https://bugs.winehq.org/show_bug.cgi?id=45380
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #2 from Fabian Maurer dark.shadow4@web.de --- Is this the program? https://www.editplus.com/download.html ?
Tried with wine-3.11 and can't reproduce the error. Do I need different settings or some special file?
https://bugs.winehq.org/show_bug.cgi?id=45380
--- Comment #3 from ryampolsky@yahoo.com --- Maybe I should have mentioned that I have the Ubuntu 'Light' theme enabled. But I just tried it with no theme enabled, and it still happens there. But only if the color setting for selected text has a white foreground - which wasn't the default when I disabled the theme.
https://bugs.winehq.org/show_bug.cgi?id=45380
--- Comment #4 from ryampolsky@yahoo.com --- (In reply to ryampolsky from comment #3)
Maybe I should have mentioned that I have the Ubuntu 'Light' theme enabled. But I just tried it with no theme enabled, and it still happens there. But only if the color setting for selected text has a white foreground - which wasn't the default when I disabled the theme.
Oh, and I'm running EditPlus version 3.80 (32 bit). It's the only version I have a paid license for. But I did just download it recently using this URL:
https://www.editplus.com/latest.html