Default desktop background image isn't horizontally centered
|Reported by:||idefix||Owned by:||anevilyak|
Since hrev22040, Haiku has a default background image set for the desktop.
Line 499 of TrackerInitialState.cpp sets the x-position of that image:
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:
logoPos.x = floorf((screen.Frame().Width() - 605) / 2);