From 408c5e4d16110cb07f4d52188a9f295e640fce96 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Sun, 2 Dec 2018 19:04:18 +0100 Subject: [PATCH] Fixed #385: Display panel did not show Line Mode in the right position under SDL1 --- src/osdep/gui/PanelDisplay.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osdep/gui/PanelDisplay.cpp b/src/osdep/gui/PanelDisplay.cpp index 62a802c0..04f15cc9 100644 --- a/src/osdep/gui/PanelDisplay.cpp +++ b/src/osdep/gui/PanelDisplay.cpp @@ -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);