diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index d901f6cb4e..69362d2f22 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -1826,7 +1826,7 @@ private: { Point 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 + (r.bottom - r.top - WD_IMGBTN_TOP - WD_IMGBTN_BOTTOM + sig_sprite_size.height) / 2; // aligned to bottom