diff options
author | glx <glx@openttd.org> | 2019-04-12 18:46:49 +0200 |
---|---|---|
committer | glx22 <glx22@users.noreply.github.com> | 2019-04-18 21:49:34 +0200 |
commit | 9195f2337a7c4f9154058877093bbb74db33cf32 (patch) | |
tree | 4b04354f9ba835623db51f961ba5c2f9c0342e47 /src/gfx_func.h | |
parent | 25e534f3cf42a723f97d6fc08d582329e60a0186 (diff) | |
download | openttd-9195f2337a7c4f9154058877093bbb74db33cf32.tar.xz |
Codechange: use std::vector for _resolutions
Diffstat (limited to 'src/gfx_func.h')
-rw-r--r-- | src/gfx_func.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gfx_func.h b/src/gfx_func.h index bbace3913..1724a931f 100644 --- a/src/gfx_func.h +++ b/src/gfx_func.h @@ -66,8 +66,7 @@ extern bool _right_button_clicked; extern DrawPixelInfo _screen; extern bool _screen_disable_anim; ///< Disable palette animation (important for 32bpp-anim blitter during giant screenshot) -extern int _num_resolutions; -extern Dimension _resolutions[32]; +extern std::vector<Dimension> _resolutions; extern Dimension _cur_resolution; extern Palette _cur_palette; ///< Current palette @@ -162,7 +161,7 @@ void SetAnimatedMouseCursor(const AnimCursor *table); void CursorTick(); void UpdateCursorSize(); bool ChangeResInGame(int w, int h); -void SortResolutions(int count); +void SortResolutions(); bool ToggleFullScreen(bool fs); /* gfx.cpp */ |