#9260 NORM Not Tri: pippy examples can adapt to screen dimensions

Zarro Boogs per Child bugtracker at laptop.org
Tue Feb 17 07:22:35 EST 2009


#9260: pippy examples can adapt to screen dimensions
--------------------------------------+-------------------------------------
           Reporter:  skierpage       |       Owner:  cjb        
               Type:  defect          |      Status:  new        
           Priority:  normal          |   Milestone:  Not Triaged
          Component:  pippy-activity  |     Version:             
         Resolution:                  |    Keywords:             
        Next_action:  never set       |    Verified:  0          
Deployment_affected:                  |   Blockedby:             
           Blocking:                  |  
--------------------------------------+-------------------------------------

Comment(by skierpage):

 This seems to work rotated also, and is simpler/cleaner:
 {{{
 # Display defaults to screen resolution (SDL 1.2.10 and above),
 if pygame.get_sdl_version() < (1, 2, 10) :
   exit('Warning, version of SDL too old,exiting!')
 screen = pygame.display.set_mode()
 size = width, height = screen.get_width(), screen.get_height()
 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/9260#comment:1>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list