We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 465980c commit c3258deCopy full SHA for c3258de
src/emu/rendlay.cpp
@@ -3715,7 +3715,8 @@ void layout_element::component::draw_text(
3715
float aspect = 1.0;
3716
if (align == 3 || width > bounds.width())
3717
{
3718
- aspect = float(bounds.width()) / float(width);
+ if (width != 0)
3719
+ aspect = float(bounds.width()) / float(width);
3720
width = bounds.width();
3721
}
3722
@@ -3732,8 +3733,8 @@ void layout_element::component::draw_text(
3732
3733
case 2:
3734
curx = bounds.left() + bounds.width() - width;
3735
break;
-
3736
- // stretch
+
3737
+ // stretch (aligned both left & right)
3738
case 3:
3739
curx = bounds.left();
3740
0 commit comments