#4999: Default desktop background image isn't horizontally centered --------------------------------+------------------------------------------- Reporter: idefix | Owner: anevilyak Type: bug | Status: new Priority: low | Milestone: R1 Component: Kits/libtracker.so | Version: R1/Development Keywords: | Blockedby: Platform: All | Blocking: --------------------------------+------------------------------------------- Since r22040, Haiku has a default background image set for the desktop. [source:/haiku/trunk/src/kits/tracker/TrackerInitialState.cpp#L499 Line 499 of TrackerInitialState.cpp] sets the x-position of that image: {{{ #!cpp logoPos.x = floorf((screen.Frame().Width() - 605) * (sqrtf(5) - 1) / 2); }}} I don't understand the {{{* (sqrtf(5) - 1)}}} part of that line, as it shifts the image slightly to the left, causing it to not be horizontally centered. The background image should be horizontally centered if that line changes to: {{{ #!cpp logoPos.x = floorf((screen.Frame().Width() - 605) / 2); }}} -- Ticket URL: <http://dev.haiku-os.org/ticket/4999> Haiku <http://dev.haiku-os.org> Haiku - the operating system.