diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-14 00:21:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-14 00:21:18 +0300 |
commit | c9cd2ebf0e5ecf65bc3a7f00760a800edc79e933 (patch) | |
tree | 62f0e903fbf2c661d8b9eac4070e8ddac81a621d /src/gui/widgets/tabs/setup_perfomance.cpp | |
parent | b7de43ff3f5bc076ef65e93360fc6ef9a0d5d444 (diff) | |
download | manaverse-c9cd2ebf0e5ecf65bc3a7f00760a800edc79e933.tar.gz manaverse-c9cd2ebf0e5ecf65bc3a7f00760a800edc79e933.tar.bz2 manaverse-c9cd2ebf0e5ecf65bc3a7f00760a800edc79e933.tar.xz manaverse-c9cd2ebf0e5ecf65bc3a7f00760a800edc79e933.zip |
Fix compilation with SDL 1.2.
Diffstat (limited to 'src/gui/widgets/tabs/setup_perfomance.cpp')
-rw-r--r-- | src/gui/widgets/tabs/setup_perfomance.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/tabs/setup_perfomance.cpp b/src/gui/widgets/tabs/setup_perfomance.cpp index 664183276..9eaca8e85 100644 --- a/src/gui/widgets/tabs/setup_perfomance.cpp +++ b/src/gui/widgets/tabs/setup_perfomance.cpp @@ -53,8 +53,10 @@ static const char *const texturesList[] = Setup_Perfomance::Setup_Perfomance(const Widget2 *const widget) : SetupTabScroll(widget), - mTexturesList(new NamesModel), - mSdlDriversList(new NamesModel) +#ifdef USE_SDL2 + mSdlDriversList(new NamesModel), +#endif // USE_SDL2 + mTexturesList(new NamesModel) { // TRANSLATORS: settings tab name setName(_("Performance")); |