Properly center sprites in image buttons
commitc1160e490268bbabf2644aaf2b4f17396405e1b6
authorcirdan <cirdansw@gmail.com>
Wed, 10 May 2017 16:36:54 +0000 (10 18:36 +0200)
committercirdan <cirdansw@gmail.com>
Wed, 10 May 2017 16:36:54 +0000 (10 18:36 +0200)
tree1eb858ee8fe546bdc4d51ddbfe12c5b2d2f6aebc
parentc80a4b3c42d66a18e9e4454f0ea0f21c711e0807
Properly center sprites in image buttons

Commit 9dd6de63224bbb1464c0f9f57419a81e23477656 tried to make the
sprite in an image button to be drawn centered, but did not account
for the fact that some sprites in the original graphics set already
have a hard-coded offset relative to their intended button; this
is most noticeable in the buoy sprite drawn in the waterways
construction toolbar.
src/widget.cpp