X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fscreens.c;h=33da76b253b67ab4dcabc307ba575ab4d7e9a7bf;hb=c903bd8cfb145b91de8a39204ea207ad0f5a3b49;hp=982bdf90fc87f91c03585d7c03604bf7fc6f8647;hpb=5a9bcb94e661b4b72b7e3c13d41720053764410d;p=rocksndiamonds.git diff --git a/src/screens.c b/src/screens.c index 982bdf90..33da76b2 100644 --- a/src/screens.c +++ b/src/screens.c @@ -3298,8 +3298,8 @@ static void clearMenuListArea() int scrollbar_xpos = mSX + SC_SCROLLBAR_XPOS + menu.scrollbar_xoffset; /* correct scrollbar position if placed outside menu (playfield) area */ - if (scrollbar_xpos > mSX + SC_SCROLLBAR_XPOS) - scrollbar_xpos = mSX + SC_SCROLLBAR_XPOS; + if (scrollbar_xpos > SX + SC_SCROLLBAR_XPOS) + scrollbar_xpos = SX + SC_SCROLLBAR_XPOS; /* clear menu list area, but not title or scrollbar */ DrawBackground(mSX, mSY + MENU_SCREEN_START_YPOS * 32,