summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCooper Yuan <cooperyuan@gmail.com>2013-01-22 10:04:07 -0500
committerCooper Yuan <cooperyuan@gmail.com>2013-01-22 10:04:07 -0500
commitf8cbbc521450f4180870efd5d3590d2a7cadd1c3 (patch)
tree8010ca25272d6cf991ccc829d148e6cb6d7cc1bd
parentbb2020a274cc5af0f92422cd9337867514403f2a (diff)
add more macrosHEADmaster
-rw-r--r--compat-api.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/compat-api.h b/compat-api.h
index b299f83..b74a582 100644
--- a/compat-api.h
+++ b/compat-api.h
@@ -55,10 +55,13 @@
#define CLOSE_SCREEN_ARGS scrnIndex, pScreen
#define ADJUST_FRAME_ARGS_DECL int arg, int x, int y, int flags
+#define ADJUST_FRAME_ARGS(arg, x, y) (arg)->scrnIndex, x, y, 0
#define SWITCH_MODE_ARGS_DECL int arg, DisplayModePtr mode, int flags
+#define SWITCH_MODE_ARGS(arg, m) (arg)->scrnIndex, m, 0
#define FREE_SCREEN_ARGS_DECL int arg, int flags
+#define FREE_SCREEN_ARGS(x) (x)->scrnIndex, 0
#define VT_FUNC_ARGS_DECL int arg, int flags
#define VT_FUNC_ARGS(flags) pScrn->scrnIndex, (flags)
@@ -80,9 +83,13 @@
#define CLOSE_SCREEN_ARGS pScreen
#define ADJUST_FRAME_ARGS_DECL ScrnInfoPtr arg, int x, int y
+#define ADJUST_FRAME_ARGS(arg, x, y) arg, x, y
+
#define SWITCH_MODE_ARGS_DECL ScrnInfoPtr arg, DisplayModePtr mode
+#define SWITCH_MODE_ARGS(arg, m) arg, m
#define FREE_SCREEN_ARGS_DECL ScrnInfoPtr arg
+#define FREE_SCREEN_ARGS(x) (x)
#define VT_FUNC_ARGS_DECL ScrnInfoPtr arg
#define VT_FUNC_ARGS(flags) pScrn