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/driver.cpp | |
parent | 25e534f3cf42a723f97d6fc08d582329e60a0186 (diff) | |
download | openttd-9195f2337a7c4f9154058877093bbb74db33cf32.tar.xz |
Codechange: use std::vector for _resolutions
Diffstat (limited to 'src/driver.cpp')
-rw-r--r-- | src/driver.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/driver.cpp b/src/driver.cpp index 390fb381e..f1b4d67de 100644 --- a/src/driver.cpp +++ b/src/driver.cpp @@ -18,18 +18,17 @@ #include "safeguards.h" -char *_ini_videodriver; ///< The video driver a stored in the configuration file. -int _num_resolutions; ///< The number of resolutions. -Dimension _resolutions[32]; ///< List of resolutions. -Dimension _cur_resolution; ///< The current resolution. -bool _rightclick_emulate; ///< Whether right clicking is emulated. +char *_ini_videodriver; ///< The video driver a stored in the configuration file. +std::vector<Dimension> _resolutions; ///< List of resolutions. +Dimension _cur_resolution; ///< The current resolution. +bool _rightclick_emulate; ///< Whether right clicking is emulated. -char *_ini_sounddriver; ///< The sound driver a stored in the configuration file. +char *_ini_sounddriver; ///< The sound driver a stored in the configuration file. -char *_ini_musicdriver; ///< The music driver a stored in the configuration file. +char *_ini_musicdriver; ///< The music driver a stored in the configuration file. -char *_ini_blitter; ///< The blitter as stored in the configuration file. -bool _blitter_autodetected; ///< Was the blitter autodetected or specified by the user? +char *_ini_blitter; ///< The blitter as stored in the configuration file. +bool _blitter_autodetected; ///< Was the blitter autodetected or specified by the user? /** * Get a string parameter the list of parameters. |