diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-25 21:43:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-26 13:48:26 +0300 |
commit | 9abb51fce0cca32ebe267c4797363d99520c2a0a (patch) | |
tree | e0a22c5dc699fdd0f85d04ff1aa96196cc8d43ac /src/gui | |
parent | 5ff486002243e1481e6686494a85480a85220451 (diff) | |
download | mv-9abb51fce0cca32ebe267c4797363d99520c2a0a.tar.gz mv-9abb51fce0cca32ebe267c4797363d99520c2a0a.tar.bz2 mv-9abb51fce0cca32ebe267c4797363d99520c2a0a.tar.xz mv-9abb51fce0cca32ebe267c4797363d99520c2a0a.zip |
Add initial version of mobile OpenGL backend.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/setup_video.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index f722dbae8..9eaf5be56 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -193,11 +193,12 @@ int ModeListModel::getIndexOf(const std::string &widthXHeightMode) return -1; } -const char *OPENGL_NAME[3] = +const char *OPENGL_NAME[4] = { N_("Software"), N_("Fast OpenGL"), N_("Safe OpenGL"), + N_("Mobile OpenGL"), }; class OpenGLListModel final : public gcn::ListModel @@ -207,7 +208,7 @@ public: { } virtual int getNumberOfElements() - { return 3; } + { return 4; } virtual std::string getElementAt(int i) { @@ -566,7 +567,7 @@ void Setup_Video::action(const gcn::ActionEvent &event) if (test) { const int val = test->getConfig().getValueInt("opengl", -1); - if (val >= 0 && val <= 2) + if (val >= 0 && val <= 3) mOpenGLDropDown->setSelected(val); delete test; } |