File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -507,10 +507,13 @@ void GUIFormSpecMenu::parseList(parserData *data, const std::string &element)
507507
508508 v2f32 slot_spacing = style.getVector2f (StyleSpec::SPACING, v2f32 (-1 , -1 ));
509509 if (data->real_coordinates ) {
510- slot_spacing.X = slot_spacing.X < 0 ? imgsize.X * 1 .25f :
511- slot_spacing.X * imgsize.X + imgsize.X ;
512- slot_spacing.Y = slot_spacing.Y < 0 ? imgsize.Y * 1 .25f :
513- slot_spacing.Y * imgsize.Y + imgsize.Y ;
510+ slot_spacing.X = slot_spacing.X < 0 ? imgsize.X * 0 .25f :
511+ imgsize.X * slot_spacing.X ;
512+ slot_spacing.Y = slot_spacing.Y < 0 ? imgsize.Y * 0 .25f :
513+ imgsize.Y * slot_spacing.Y ;
514+
515+ slot_spacing.X += slot_size.X ;
516+ slot_spacing.Y += slot_size.Y ;
514517 } else {
515518 slot_spacing.X = slot_spacing.X < 0 ? spacing.X :
516519 slot_spacing.X * spacing.X ;
You can’t perform that action at this time.
0 commit comments