projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed global border for score info page
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index bde987901f8b4181c824ae673faa4cde114aea90..464a4fb14a797c4f4818481d2b2ef041cda3bf6b 100644
(file)
--- 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 :
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);
status == GAME_MODE_EDITOR ? IMG_GLOBAL_BORDER_EDITOR :
status == GAME_MODE_PLAYING ? IMG_GLOBAL_BORDER_PLAYING :
IMG_GLOBAL_BORDER);
@@
-9954,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
// ============================================================================
// tests