diff --git a/src/gui/screensetup.cpp b/src/gui/screensetup.cpp index 7f0ac97db..c004b564d 100644 --- a/src/gui/screensetup.cpp +++ b/src/gui/screensetup.cpp @@ -198,8 +198,8 @@ int CScreenSetup::exec(CMenuTarget* parent, const std::string &) case CRCInput::RC_right: { int max = (selected == 0) ? 200 : frameBuffer->getScreenWidth(true) - 1; - if (y_coord[selected] >= max) - y_coord[selected] = max; + if (x_coord[selected] >= max) + x_coord[selected] = max; else { unpaintBorder(selected);