Fixed #385: Display panel did not show Line Mode in the right position under SDL1

This commit is contained in:
Dimitris Panokostas 2018-12-02 19:04:18 +01:00
parent 10aa6bc9a7
commit 408c5e4d16

View file

@ -274,6 +274,9 @@ void InitPanelDisplay(const struct _ConfigCategory& category)
grpLineMode->setSize(optScanlines->getWidth() + DISTANCE_BORDER, optScanlines->getY() + optScanlines->getHeight() + 30);
grpLineMode->setBaseColor(gui_baseCol);
category.panel->add(grpLineMode);
#ifndef USE_SDL2
posY += DISTANCE_BORDER + grpLineMode->getHeight() + DISTANCE_NEXT_Y;
#endif
category.panel->add(chkAspect, DISTANCE_BORDER, posY);
category.panel->add(chkFullscreen, chkAspect->getX() + chkAspect->getWidth() + DISTANCE_NEXT_X * 2, posY);