Ticket UUID: | 223689 | |||
Title: | Problem when changing no of colours on Windows | |||
Type: | Bug | Version: | ||
Submitter: | nobody | Created on: | 2000-11-28 13:33:51 | |
Subsystem: | 99. Other | Assigned To: | hobbs | |
Priority: | 6 | Severity: | ||
Status: | Closed | Last Modified: | 2005-01-08 08:18:48 | |
Resolution: | Fixed | Closed By: | hobbs | |
Closed on: | 2004-09-23 01:53:24 | |||
Description: |
(This was done using Tcl/Tk 8.3.2 on Windows 2000.) Use 32 bit colours. Run wish. Change to 16 bit colours. This results problems with colours in the console. | |||
User Comments: |
bgriffin added on 2005-01-08 08:18:48:
Logged In: YES user_id=22949 I tried this out and it appears to work except in two cases: photo images and my custom widgets. Is there something special a custom C widget needs to do to get the colors straight? The C code is using the Xlib emulation layer + Tk drawing routines. Pre-existing images appear blank, at least the photo images do; bitmaps seem to be fine. Do these need to be handled as a special case? Test environment: using remote display, host is winxp, remote is win2k. Host depth 32, remote depth 16. What's the reason for #if 0 in tkWinWm.c:InvalidateSubTreeDepth? hobbs added on 2004-09-23 08:53:25: File Added - 102483: win-screen-bpp.patch hobbs added on 2004-09-23 08:53:24: Logged In: YES user_id=72656 Attached is the patch against 8-4-branch that corrects this issue and handling screen resolution changes. I have only tested 16/24/32 bpp switching, as that is what my XP machine provides for me. It may not handle 8bpp switching, special uses of colormaps, or related special palette cases. vbwagner added on 2004-04-23 17:55:08: Logged In: YES user_id=757679 Problem persists with 8.4.6 (active Tcl build). Different widget types misbehaved differently. I've found that text widget is unable to redraw itself correctly, even if I I do delete 0.0 end and insert new data. Button misdrawing survives at least state chage. BTW, if I change color scheme, not color depth, all existing windows which use system colors are not affected. dkf added on 2003-10-03 22:32:51: Logged In: YES user_id=79902 I can't do anything about this... dgp added on 2003-10-03 22:28:22: Logged In: YES user_id=80530 lost bug needs home dgp added on 2000-12-21 04:43:10: Report mentions wish => Tk bug. Moved to Tk Toolkit. |
Attachments:
- win-screen-bpp.patch [download] added by hobbs on 2004-09-23 08:53:24. [details]