(cherry picked from commit 387c57b023
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
5bbf1f5375
commit
b79360862d
@@ -1826,7 +1826,7 @@ private:
|
|||||||
{
|
{
|
||||||
Point offset;
|
Point offset;
|
||||||
Dimension sprite_size = GetSpriteSize(image.sprite, &offset);
|
Dimension sprite_size = GetSpriteSize(image.sprite, &offset);
|
||||||
int x = CenterBounds(r.left, r.right, sprite_size.width - offset.x);
|
int x = CenterBounds(r.left, r.right, sprite_size.width - offset.x) - offset.x; // centered
|
||||||
int y = r.top - sig_sprite_bottom_offset + WD_IMGBTN_TOP +
|
int y = r.top - sig_sprite_bottom_offset + WD_IMGBTN_TOP +
|
||||||
(r.bottom - r.top - WD_IMGBTN_TOP - WD_IMGBTN_BOTTOM + sig_sprite_size.height) / 2; // aligned to bottom
|
(r.bottom - r.top - WD_IMGBTN_TOP - WD_IMGBTN_BOTTOM + sig_sprite_size.height) / 2; // aligned to bottom
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user