From 9abb51fce0cca32ebe267c4797363d99520c2a0a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Oct 2012 21:43:32 +0300 Subject: Add initial version of mobile OpenGL backend. --- src/gui/setup_video.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/setup_video.cpp') 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; } -- cgit v1.2.3-60-g2f50