aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kgraphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/engine/kgraphics.cpp')
-rw-r--r--engines/sci/engine/kgraphics.cpp39
1 files changed, 21 insertions, 18 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index ddaa0f30e3..c949f3ce92 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -40,26 +40,29 @@ namespace Sci {
#define MAX_TEXT_WIDTH_MAGIC_VALUE 192
// Graph subfunctions
-#define K_GRAPH_GET_COLORS_NR 2
-#define K_GRAPH_DRAW_LINE 4
-#define K_GRAPH_SAVE_BOX 7
-#define K_GRAPH_RESTORE_BOX 8
-#define K_GRAPH_FILL_BOX_BACKGROUND 9
-#define K_GRAPH_FILL_BOX_FOREGROUND 10
-#define K_GRAPH_FILL_BOX_ANY 11
-#define K_GRAPH_UPDATE_BOX 12
-#define K_GRAPH_REDRAW_BOX 13
-#define K_GRAPH_ADJUST_PRIORITY 14
+enum {
+ K_GRAPH_GET_COLORS_NR = 2,
+ K_GRAPH_DRAW_LINE = 4,
+ K_GRAPH_SAVE_BOX = 7,
+ K_GRAPH_RESTORE_BOX = 8,
+ K_GRAPH_FILL_BOX_BACKGROUND = 9,
+ K_GRAPH_FILL_BOX_FOREGROUND = 10,
+ K_GRAPH_FILL_BOX_ANY = 11,
+ K_GRAPH_UPDATE_BOX = 12,
+ K_GRAPH_REDRAW_BOX = 13,
+ K_GRAPH_ADJUST_PRIORITY = 14
+};
// Control types and flags
-#define K_CONTROL_BUTTON 1
-#define K_CONTROL_TEXT 2
-#define K_CONTROL_EDIT 3
-#define K_CONTROL_ICON 4
-#define K_CONTROL_CONTROL 6
-#define K_CONTROL_CONTROL_ALIAS 7
-#define K_CONTROL_BOX 10
-
+enum {
+ K_CONTROL_BUTTON = 1,
+ K_CONTROL_TEXT = 2,
+ K_CONTROL_EDIT = 3,
+ K_CONTROL_ICON = 4,
+ K_CONTROL_CONTROL = 6,
+ K_CONTROL_CONTROL_ALIAS = 7,
+ K_CONTROL_BOX = 10
+};
#define ADD_TO_CURRENT_PORT(widget) \
{if (s->port) \