diff options
author | Darkvater <darkvater@openttd.org> | 2005-05-14 21:01:57 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-05-14 21:01:57 +0000 |
commit | 2aa94201dc19b86e2c1bb5e2c724b52332833ccc (patch) | |
tree | 8885092af8efe744ce5c147755c8d5a7d50c3438 /gfx.h | |
parent | d99dddc704e265665b652681855435df66367ecd (diff) | |
download | openttd-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |