projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added null pointer checks to path setup functions
[rocksndiamonds.git]
/
src
/
screens.c
diff --git
a/src/screens.c
b/src/screens.c
index 982bdf90fc87f91c03585d7c03604bf7fc6f8647..d7a2b63e6883d10a6607eea3584561b16f866365 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-317,6
+317,9
@@
static struct
} volumes_list[] =
{
{ 0, "0 %" },
} volumes_list[] =
{
{ 0, "0 %" },
+ { 1, "1 %" },
+ { 2, "2 %" },
+ { 5, "5 %" },
{ 10, "10 %" },
{ 20, "20 %" },
{ 30, "30 %" },
{ 10, "10 %" },
{ 20, "20 %" },
{ 30, "30 %" },
@@
-3298,8
+3301,8
@@
static void clearMenuListArea()
int scrollbar_xpos = mSX + SC_SCROLLBAR_XPOS + menu.scrollbar_xoffset;
/* correct scrollbar position if placed outside menu (playfield) area */
int scrollbar_xpos = mSX + SC_SCROLLBAR_XPOS + menu.scrollbar_xoffset;
/* correct scrollbar position if placed outside menu (playfield) area */
- if (scrollbar_xpos >
m
SX + SC_SCROLLBAR_XPOS)
- scrollbar_xpos =
m
SX + 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,
/* clear menu list area, but not title or scrollbar */
DrawBackground(mSX, mSY + MENU_SCREEN_START_YPOS * 32,