[haiku-bugs] Re: [Haiku] #4720: Wallpapers should be able to fill & keep proper aspect ratio (easy)

  • From: "stippi" <trac@xxxxxxxxxxxx>
  • Date: Wed, 07 Apr 2010 13:18:21 -0000

#4720: Wallpapers should be able to fill & keep proper aspect ratio (easy)
-------------------------------------+--------------------------------------
 Reporter:  olaf                     |       Owner:  nobody        
     Type:  enhancement              |      Status:  new           
 Priority:  normal                   |   Milestone:  R1            
Component:  Preferences/Backgrounds  |     Version:  R1/Development
 Keywords:                           |   Blockedby:                
 Platform:  All                      |    Blocking:                
-------------------------------------+--------------------------------------

Comment(by stippi):

 This patch is almost perfect. I think you need to compare aspect ratio of
 screen and bitmap in order to decide where to overlap. A bitmap may have
 to overlap at top/bottom OR left/right, depending on whether the aspect
 ratio is smaller or greater than the view aspect ratio, even though in
 both cases, the width may be greater than the height.

 Other than that, the patch just needs to honor the 80 chars/line limit.
 :-)

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/4720#comment:2>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: