projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version number set to 4.2.0.0
[rocksndiamonds.git]
/
src
/
screens.c
diff --git
a/src/screens.c
b/src/screens.c
index c492d48b8863118a4947b577bb5aa2e75d990c87..0e97d4a7f42acab71d678476604d3146537d84bc 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-2428,6
+2428,9
@@
static void HandleMenuScreen(int mx, int my, int dx, int dy, int button,
static int num_page_entries_all_last[NUM_SPECIAL_GFX_ARGS][MAX_MENU_MODES];
static int choice_stores[NUM_SPECIAL_GFX_ARGS][MAX_MENU_MODES];
static int first_entry_stores[NUM_SPECIAL_GFX_ARGS][MAX_MENU_MODES];
static int num_page_entries_all_last[NUM_SPECIAL_GFX_ARGS][MAX_MENU_MODES];
static int choice_stores[NUM_SPECIAL_GFX_ARGS][MAX_MENU_MODES];
static int first_entry_stores[NUM_SPECIAL_GFX_ARGS][MAX_MENU_MODES];
+ boolean has_scrollbar = screen_gadget[SCREEN_CTRL_ID_SCROLL_VERTICAL]->mapped;
+ int mx_scrollbar = screen_gadget[SCREEN_CTRL_ID_SCROLL_VERTICAL]->x;
+ int mx_right_border = (has_scrollbar ? mx_scrollbar : SX + SXSIZE);
int *num_page_entries_last = num_page_entries_all_last[game_status];
int *choice_store = choice_stores[game_status];
int *first_entry_store = first_entry_stores[game_status];
int *num_page_entries_last = num_page_entries_all_last[game_status];
int *choice_store = choice_stores[game_status];
int *first_entry_store = first_entry_stores[game_status];
@@
-2649,7
+2652,7
@@
static void HandleMenuScreen(int mx, int my, int dx, int dy, int button,
if (!anyScrollbarGadgetActive() &&
IN_VIS_MENU(x, y) &&
if (!anyScrollbarGadgetActive() &&
IN_VIS_MENU(x, y) &&
- mx <
screen_gadget[SCREEN_CTRL_ID_SCROLL_VERTICAL]->x
&&
+ mx <
mx_right_border
&&
y >= 0 && y < num_page_entries)
{
if (button)
y >= 0 && y < num_page_entries)
{
if (button)
@@
-4203,6
+4206,9
@@
static void HandleChooseTree(int mx, int my, int dx, int dy, int button,
TreeInfo **ti_ptr)
{
TreeInfo *ti = *ti_ptr;
TreeInfo **ti_ptr)
{
TreeInfo *ti = *ti_ptr;
+ boolean has_scrollbar = screen_gadget[SCREEN_CTRL_ID_SCROLL_VERTICAL]->mapped;
+ int mx_scrollbar = screen_gadget[SCREEN_CTRL_ID_SCROLL_VERTICAL]->x;
+ int mx_right_border = (has_scrollbar ? mx_scrollbar : SX + SXSIZE);
int x = 0;
int y = ti->cl_cursor;
int step = (button == 1 ? 1 : button == 2 ? 5 : 10);
int x = 0;
int y = ti->cl_cursor;
int step = (button == 1 ? 1 : button == 2 ? 5 : 10);
@@
-4397,7
+4403,7
@@
static void HandleChooseTree(int mx, int my, int dx, int dy, int button,
if (!anyScrollbarGadgetActive() &&
IN_VIS_MENU(x, y) &&
if (!anyScrollbarGadgetActive() &&
IN_VIS_MENU(x, y) &&
- mx <
screen_gadget[SCREEN_CTRL_ID_SCROLL_VERTICAL]->x
&&
+ mx <
mx_right_border
&&
y >= 0 && y < num_page_entries)
{
if (button)
y >= 0 && y < num_page_entries)
{
if (button)
@@
-6281,10
+6287,11
@@
static struct TokenInfo setup_info_engines[] =
{
{ TYPE_HEADLINE, NULL, "Emerald Mine" },
{ TYPE_SWITCH, &setup.forced_scroll_delay, "Scroll Delay:" },
{
{ TYPE_HEADLINE, NULL, "Emerald Mine" },
{ TYPE_SWITCH, &setup.forced_scroll_delay, "Scroll Delay:" },
- { TYPE_ECS_AGA, &setup.prefer_aga_graphics,"EMC graphics preference:" },
+ { TYPE_ECS_AGA, &setup.prefer_aga_graphics, "Amiga Graphics Chipset:" },
+ { TYPE_SWITCH, &setup.prefer_lowpass_sounds,"Low-Pass Filter Sounds:" },
{ TYPE_EMPTY, NULL, "" },
{ TYPE_HEADLINE, NULL, "Supaplex" },
{ TYPE_EMPTY, NULL, "" },
{ TYPE_HEADLINE, NULL, "Supaplex" },
- { TYPE_SWITCH,
&setup.sp_show_border_elements,"Supaplex
Border Elements:" },
+ { TYPE_SWITCH,
&setup.sp_show_border_elements, "
Border Elements:" },
{ TYPE_EMPTY, NULL, "" },
{ TYPE_LEAVE_MENU, execSetupMain, "Back" },
{ TYPE_EMPTY, NULL, "" },
{ TYPE_LEAVE_MENU, execSetupMain, "Back" },