summaryrefslogtreecommitdiff
path: root/gfx.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-05-14 21:01:57 +0000
committerDarkvater <darkvater@openttd.org>2005-05-14 21:01:57 +0000
commit2aa94201dc19b86e2c1bb5e2c724b52332833ccc (patch)
tree8885092af8efe744ce5c147755c8d5a7d50c3438 /gfx.h
parentd99dddc704e265665b652681855435df66367ecd (diff)
downloadopenttd-2aa94201dc19b86e2c1bb5e2c724b52332833ccc.tar.xz
(svn r2310) - Fix: Game would crash if you full-screened with the 'fullscreen' button than chose a resolution from the dropdown box that was no longer valid. Big thanks to DaleStan for track down the crashing bug.
- Fix: There would be duplicate entries in the resolutions dropdown box. Copy SDL method or removing duplicates and sort the list. - Feature: in the settings menu, you don't have to click on the arrows anymore, clicking on the dropdown box itself has the same effect. Consistent with other dropdowns in the game
Diffstat (limited to 'gfx.h')
-rw-r--r--gfx.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gfx.h b/gfx.h
index 965fd6e04..e52cbdbba 100644
--- a/gfx.h
+++ b/gfx.h
@@ -66,7 +66,8 @@ void DrawMouseCursor(void);
void ScreenSizeChanged(void);
void UndrawMouseCursor(void);
bool ChangeResInGame(int w, int h);
-void ToggleFullScreen(const bool full_screen);
+void SortResolutions(int count);
+void ToggleFullScreen(bool full_screen);
/* gfx.c */
#define ASCII_LETTERSTART 32