#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 Resolution: | Keywords: gsoc2010 Blocked By: | Has a Patch: 0 Platform: All | Blocking: --------------------------------------+------------------------------ Comment (by devheart): Replying to [comment:6 stippi]: In BRectHorizontalOverlap() and BRectVerticalOverlap(), it looks like engleek swapped the last '''hostRect.Width/Height''' in each equation. In BRectHorizontalOverlap(), it should be {{{#!cpp return (((hostRect.Height() / resizedRect.Height()) * resizedRect.Width()) - hostRect.Width()) / 2; }}} and BRectVertialOverlap() should be {{{#!cpp return (((hostRect.Width() / resizedRect.Width()) * resizedRect.Height()) - hostRect.Height()) / 2; }}} -- Ticket URL: <http://dev.haiku-os.org/ticket/4720#comment:7> Haiku <http://dev.haiku-os.org> Haiku - the operating system.