X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=464a4fb14a797c4f4818481d2b2ef041cda3bf6b;hb=83e517a21df545adde838b80e6a4c93807480a72;hp=c8070fa2365f3349e0e68b3a9785f3c9c218f564;hpb=8c16b35bafd9a51060095bff4a62fc327c4cf495;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index c8070fa2..464a4fb1 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1122,7 +1122,8 @@ Bitmap *getGlobalBorderBitmapFromStatus(int status) int graphic = (status == GAME_MODE_MAIN || status == GAME_MODE_PSEUDO_TYPENAME ? IMG_GLOBAL_BORDER_MAIN : - status == GAME_MODE_SCORES ? IMG_GLOBAL_BORDER_SCORES : + status == GAME_MODE_SCORES || + status == GAME_MODE_SCOREINFO ? IMG_GLOBAL_BORDER_SCORES : status == GAME_MODE_EDITOR ? IMG_GLOBAL_BORDER_EDITOR : status == GAME_MODE_PLAYING ? IMG_GLOBAL_BORDER_PLAYING : IMG_GLOBAL_BORDER); @@ -2527,6 +2528,11 @@ void DrawScreenGraphic(int x, int y, int graphic, int frame) } } +void DrawLevelGraphic(int x, int y, int graphic, int frame) +{ + DrawScreenGraphic(SCREENX(x), SCREENY(y), graphic, frame); +} + void DrawScreenElement(int x, int y, int element) { int mask_mode = NO_MASKING; @@ -9949,6 +9955,16 @@ void ChangeViewportPropertiesIfNeeded(void) } } +void OpenURL(char *url) +{ + SDL_OpenURL(url); +} + +void OpenURLFromHash(SetupFileHash *hash, int hash_key) +{ + OpenURL(getHashEntry(hash, int2str(hash_key, 0))); +} + // ============================================================================ // tests