[haiku-bugs] [Haiku] #8628: BScreen GetMode + SetMode results in mode change

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Sat, 09 Jun 2012 09:15:42 -0000

#8628: BScreen GetMode + SetMode results in mode change
--------------------------------+------------------------------
 Reporter:  pulkomandy          |        Owner:  axeld
     Type:  bug                 |       Status:  new
 Priority:  normal              |    Milestone:  R1
Component:  Kits/Interface Kit  |      Version:  R1/Development
 Keywords:                      |   Blocked By:
 Blocking:                      |  Has a Patch:  0
 Platform:  All                 |
--------------------------------+------------------------------
 {{{
 display_mode mode;
 BScreen screen;

 screen.GetMode(&mode);
 screen.SetMode(&mode);
 }}}

 Expected result : nothing changes, as we just set the screen to the mode
 it already has.
 Actual result : screen mode before is 1400x1050. screen mode after is
 640x480.

 Tested with intel_extreme driver. Maybe others drivers are not the same ?
 (if so, we need to change ticket category)

 Information: SDL does about the same (save mode at startup, restore at
 exit of fullscreen app). This is how I encountered this problem.

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

Other related posts: