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 | |
parent | b7de43ff3f5bc076ef65e93360fc6ef9a0d5d444 (diff) | |
download | mv-c9cd2ebf0e5ecf65bc3a7f00760a800edc79e933.tar.gz mv-c9cd2ebf0e5ecf65bc3a7f00760a800edc79e933.tar.bz2 mv-c9cd2ebf0e5ecf65bc3a7f00760a800edc79e933.tar.xz mv-c9cd2ebf0e5ecf65bc3a7f00760a800edc79e933.zip |
Fix compilation with SDL 1.2.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/tabs/setup_perfomance.cpp | 6 | ||||
-rw-r--r-- | src/gui/widgets/tabs/setup_perfomance.h | 2 |
2 files changed, 5 insertions, 3 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")); diff --git a/src/gui/widgets/tabs/setup_perfomance.h b/src/gui/widgets/tabs/setup_perfomance.h index a4043ab4e..95030a8e5 100644 --- a/src/gui/widgets/tabs/setup_perfomance.h +++ b/src/gui/widgets/tabs/setup_perfomance.h @@ -37,10 +37,10 @@ class Setup_Perfomance final : public SetupTabScroll ~Setup_Perfomance(); private: - NamesModel *mTexturesList; #ifdef USE_SDL2 NamesModel *mSdlDriversList; #endif // USE_SDL2 + NamesModel *mTexturesList; }; #endif // GUI_WIDGETS_TABS_SETUP_PERFOMANCE_H |