From: Holger Schemel Date: Wed, 22 Oct 2014 22:25:02 +0000 (+0200) Subject: fixed initialization bug when clearing menu list area X-Git-Tag: 4.0.0.0-rc1~321 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=307b13d025b6b0a5011c74efa3a2c023d3986ebb;p=rocksndiamonds.git fixed initialization bug when clearing menu list area --- diff --git a/src/conftime.h b/src/conftime.h index 68a8d305..75c7e4d5 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "2014-10-22 23:54" +#define COMPILE_DATE_STRING "2014-10-23 00:22" diff --git a/src/screens.c b/src/screens.c index 9f679ac4..469239d1 100644 --- a/src/screens.c +++ b/src/screens.c @@ -3271,8 +3271,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 > SC_SCROLLBAR_XPOS) - scrollbar_xpos = SC_SCROLLBAR_XPOS; + if (scrollbar_xpos > mSX + SC_SCROLLBAR_XPOS) + scrollbar_xpos = mSX + SC_SCROLLBAR_XPOS; /* clear menu list area, but not title or scrollbar */ DrawBackground(mSX, mSY + MENU_SCREEN_START_YPOS * 32,