projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20031019-2-src
[rocksndiamonds.git]
/
src
/
screens.c
diff --git
a/src/screens.c
b/src/screens.c
index c119ff7c1eef22da85ce44d37fe4fb76cc8dfeae..aa97ce2f704a135b80bb581dcdc7c5ea8f56ddb0 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-212,6
+212,7
@@
void DrawMainMenu()
{
game_status = GAME_MODE_EDITOR;
DrawLevelEd();
{
game_status = GAME_MODE_EDITOR;
DrawLevelEd();
+
return;
}
return;
}
@@
-1240,12
+1241,6
@@
static void drawChooseTreeList(int first_entry, int num_page_entries,
int yoffset = (ti->type == TREE_TYPE_LEVEL_DIR ? 0 : yoffset_setup);
int last_game_status = game_status; /* save current game status */
int yoffset = (ti->type == TREE_TYPE_LEVEL_DIR ? 0 : yoffset_setup);
int last_game_status = game_status; /* save current game status */
-#if 1
- DrawBackground(mSX, mSY, SXSIZE - 32 + menu.scrollbar_xoffset, SYSIZE);
-#else
- DrawBackground(SX, SY, SXSIZE - 32, SYSIZE);
-#endif
-
title_string =
(ti->type == TREE_TYPE_LEVEL_DIR ? "Level Directories" :
ti->type == TREE_TYPE_GRAPHICS_DIR ? "Custom Graphics" :
title_string =
(ti->type == TREE_TYPE_LEVEL_DIR ? "Level Directories" :
ti->type == TREE_TYPE_GRAPHICS_DIR ? "Custom Graphics" :
@@
-1257,6
+1252,11
@@
static void drawChooseTreeList(int first_entry, int num_page_entries,
/* force LEVELS font on artwork setup screen */
game_status = GAME_MODE_LEVELS;
/* force LEVELS font on artwork setup screen */
game_status = GAME_MODE_LEVELS;
+ /* clear tree list area, but not title or scrollbar */
+ DrawBackground(mSX, mSY + MENU_SCREEN_START_YPOS * 32,
+ SXSIZE - 32 + menu.scrollbar_xoffset,
+ MAX_MENU_ENTRIES_ON_SCREEN * 32);
+
for(i=0; i<num_page_entries; i++)
{
TreeInfo *node, *node_first;
for(i=0; i<num_page_entries; i++)
{
TreeInfo *node, *node_first;