aboutsummaryrefslogtreecommitdiff
path: root/sword2/mouse.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-10-03 06:54:44 +0000
committerTorbjörn Andersson2003-10-03 06:54:44 +0000
commit10fee205e1d7d064c74040192022440711f3a4ca (patch)
tree8e078413dfa5553f307f3c15de6910028424da46 /sword2/mouse.cpp
parent2c726548969a33c37b4dd79ac9f72ee5b6f80a7c (diff)
downloadscummvm-rg350-10fee205e1d7d064c74040192022440711f3a4ca.tar.gz
scummvm-rg350-10fee205e1d7d064c74040192022440711f3a4ca.tar.bz2
scummvm-rg350-10fee205e1d7d064c74040192022440711f3a4ca.zip
Some renaming (ironic in the light of Fingolfin's recent namespace
suggestion, but I prepared the patch long before reading the mail :-). Also, the remaining parts of the control panel etc. have been moved into a class of their own. This is still work in progress. I'm well aware that some of the classes aren't as well separated as they ought to be, and that using global variables to keep track of the different classes probably isn't pretty. svn-id: r10561
Diffstat (limited to 'sword2/mouse.cpp')
-rw-r--r--sword2/mouse.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/sword2/mouse.cpp b/sword2/mouse.cpp
index 0cea0783ac..26f17972d2 100644
--- a/sword2/mouse.cpp
+++ b/sword2/mouse.cpp
@@ -99,7 +99,6 @@ uint32 old_button = 0;
uint32 button_click = 0;
uint32 pointer_text_bloc_no = 0;
-uint32 pointerTextSelected = 0;
uint32 player_activity_delay = 0; // player activity delay counter
@@ -241,19 +240,19 @@ void System_menu(void) {
// call the relevent screen
switch (hit) {
case 0:
- Option_control();
+ gui.optionControl();
break;
case 1:
- Quit_control();
+ gui.quitControl();
break;
case 2:
- Save_control();
+ gui.saveControl();
break;
case 3:
- Restore_control();
+ gui.restoreControl();
break;
case 4:
- Restart_control();
+ gui.restartControl();
break;
}
@@ -880,7 +879,7 @@ void CreatePointerText(uint32 textId, uint32 pointerRes) {
int16 xOffset, yOffset;
uint8 justification;
- if (pointerTextSelected) {
+ if (gui._pointerTextSelected) {
if (textId) {
// check what the pointer is, to set offsets
// correctly for text position