X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.h;h=617fc5730c1112525b9da861caf61b632d356fb3;hb=4b722be68436ced0b7bb3eff61ed14d6c66df949;hp=d5027aecd803aedaa1543eb07bebe01fb748d927;hpb=f1f15272242355ab7bc94028b4fa4b2e0f8152b5;p=rocksndiamonds.git diff --git a/src/libgame/system.h b/src/libgame/system.h index d5027aec..617fc573 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -136,6 +136,10 @@ (b) <= MB_WHEEL_DOWN) #define DEFAULT_WHEEL_STEPS 3 +#define BUTTON_STEPSIZE(b) ((b) == MB_LEFTBUTTON ? 1 : \ + (b) == MB_MIDDLEBUTTON ? 5 : \ + (b) == MB_RIGHTBUTTON ? 10 : 1) + /* values for move directions */ #define MV_BIT_LEFT 0 #define MV_BIT_RIGHT 1 @@ -439,6 +443,9 @@ #define ERROR_BASENAME "stderr.txt" +#define STRING_PARENT_DIRECTORY ".." +#define STRING_TOP_DIRECTORY "/" + #define CHAR_PATH_SEPARATOR_UNIX '/' #define CHAR_PATH_SEPARATOR_DOS '\\' @@ -729,6 +736,8 @@ struct VideoSystemInfo boolean window_scaling_available; int window_scaling_percent; char *window_scaling_quality; + + boolean initialized; }; struct AudioSystemInfo @@ -813,6 +822,8 @@ struct GfxInfo int anim_random_frame; void (*draw_busy_anim_function)(void); + + int cursor_mode; }; struct JoystickInfo @@ -1283,6 +1294,7 @@ void InitGfxScrollbufferInfo(int, int); void InitGfxClipRegion(boolean, int, int, int, int); void InitGfxDrawBusyAnimFunction(void (*draw_busy_anim_function)(void)); void InitGfxCustomArtworkInfo(); +void InitGfxOtherSettings(); void SetDrawDeactivationMask(int); void SetDrawBackgroundMask(int); void SetWindowBackgroundBitmap(Bitmap *);