[haiku-bugs] [Haiku] #8035: BColorControl not redrawn when switching to and from 8-bit (256 color) mode

  • From: "jscipione" <trac@xxxxxxxxxxxx>
  • Date: Thu, 10 Mar 2016 19:31:34 -0000

#8035: BColorControl not redrawn when switching to and from 8-bit (256 color) 
mode
----------------------------------+----------------------------
   Reporter:  jscipione           |      Owner:  jscipione
       Type:  bug                 |     Status:  assigned
   Priority:  low                 |  Milestone:  R1
  Component:  Kits/Interface Kit  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  1                   |   Platform:  All
----------------------------------+----------------------------

Attachment added (by jscipione):

modeswitch2.patch (4.0 KB) - ebuild control after mode switch      App Server 
sends each window a message that the screen has changed:     
https://www.haiku-os.org/legacy-docs/bebook/BWindow.html#BWindow_ScreenChanged  ;
   Propegate B_SCREEN_CHANGED message to all child views first      Tell 
BColorControl to read the B_SCREEN_CHANGED message and reinitialize itself.     
 * Only reinit if switching to or from B_CMAP8     * Initialize all pointers to 
NULL in constructor     * Don't destroy and rebuild offscreen view (and text 
views) on reinit     * Reinitialize offscreen view on reinit.

View the file at 
https://dev.haiku-os.org/attachment/ticket/8035/modeswitch2.patch

-- 
Ticket URL: https://dev.haiku-os.org/ticket/8035
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: