diff options
author | IronClawTrem <louie.nutman@gmail.com> | 2020-04-09 18:30:35 +0100 |
---|---|---|
committer | IronClawTrem <louie.nutman@gmail.com> | 2020-04-09 18:31:16 +0100 |
commit | f324890e9715490c909ca6123948f4157401324c (patch) | |
tree | 9db453bd1cf86ea2a5751dadd073c003635f9f3e /src/ui/ui_main.c | |
parent | c378d3fb9f7f443ee6a6f78f490f2bc203aba5ea (diff) |
multiprotocol: gamelogic code for 1.1
Diffstat (limited to 'src/ui/ui_main.c')
-rw-r--r-- | src/ui/ui_main.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c index 096253a..d694381 100644 --- a/src/ui/ui_main.c +++ b/src/ui/ui_main.c @@ -33,11 +33,24 @@ USER INTERFACE MAIN uiInfo_t uiInfo; +#ifdef MODULE_INTERFACE_11 +#undef AS_GLOBAL +#undef AS_LOCAL +#define AS_GLOBAL 2 +#define AS_LOCAL 0 +#endif + static const char *netSources[ ] = { +#ifdef MODULE_INTERFACE_11 + "LAN", + "Mplayer", + "Internet", +#else "Internet", "Mplayer", "LAN", +#endif "Favorites" }; @@ -163,12 +176,14 @@ Q_EXPORT intptr_t vmMain( int command, int arg0, int arg1, int arg2, int arg3, UI_MouseEvent( arg0, arg1 ); return 0; +#ifndef MODULE_INTERFACE_11 case UI_MOUSE_POSITION: return UI_MousePosition( ); case UI_SET_MOUSE_POSITION: UI_SetMousePosition( arg0, arg1 ); return 0; +#endif case UI_REFRESH: UI_Refresh( arg0 ); |