@@ -1678,7 +1678,7 @@ private:
|
|||||||
Point offset;
|
Point offset;
|
||||||
Dimension sprite_size = GetSpriteSize(image, &offset);
|
Dimension sprite_size = GetSpriteSize(image, &offset);
|
||||||
Rect ir = r.Shrink(WidgetDimensions::scaled.imgbtn);
|
Rect ir = r.Shrink(WidgetDimensions::scaled.imgbtn);
|
||||||
int x = CenterBounds(ir.left, ir.right, sprite_size.width - offset.x); // centered
|
int x = CenterBounds(ir.left, ir.right, sprite_size.width - offset.x) - offset.x; // centered
|
||||||
int y = ir.top - sig_sprite_bottom_offset +
|
int y = ir.top - sig_sprite_bottom_offset +
|
||||||
(ir.Height() + sig_sprite_size.height) / 2; // aligned to bottom
|
(ir.Height() + sig_sprite_size.height) / 2; // aligned to bottom
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user