summaryrefslogtreecommitdiff
path: root/src/gui/setup_video.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-20 16:38:15 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-20 16:38:15 +0300
commit747dc30f256606e28fd932a9626da7c328114036 (patch)
tree1b3e7e70ba439d14d4936660d44c95c27816a11b /src/gui/setup_video.cpp
parentcef2952156ab09371ed04beec00d0f1e8615ada9 (diff)
downloadplus-747dc30f256606e28fd932a9626da7c328114036.tar.gz
plus-747dc30f256606e28fd932a9626da7c328114036.tar.bz2
plus-747dc30f256606e28fd932a9626da7c328114036.tar.xz
plus-747dc30f256606e28fd932a9626da7c328114036.zip
fix style in gui directory.
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r--src/gui/setup_video.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index c64bec32f..e0054b0e0 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -132,7 +132,8 @@ static bool modeSorter(std::string mode1, std::string mode2)
}
#endif
-ModeListModel::ModeListModel()
+ModeListModel::ModeListModel() :
+ mVideoModes()
{
graphicsManager.getAllVideoModes(mVideoModes);
#ifndef ANDROID
@@ -218,8 +219,10 @@ Setup_Video::Setup_Video(const Widget2 *const widget) :
mEnableResize(config.getBoolValue("enableresize")),
mNoFrame(config.getBoolValue("noframe")),
mModeListModel(new ModeListModel),
+ mOpenGLListModel(new OpenGLListModel),
mModeList(new ListBox(widget, mModeListModel, "")),
mFsCheckBox(new CheckBox(this, _("Full screen"), mFullScreenEnabled)),
+ mOpenGLDropDown(new DropDown(widget, mOpenGLListModel)),
mCustomCursorCheckBox(new CheckBox(this,
#ifdef ANDROID
_("Show cursor"),
@@ -247,9 +250,6 @@ Setup_Video::Setup_Video(const Widget2 *const widget) :
scrollArea->setWidth(150);
scrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER);
- mOpenGLListModel = new OpenGLListModel;
- mOpenGLDropDown = new DropDown(widget, mOpenGLListModel);
-
#ifdef USE_OPENGL
#ifdef ANDROID
if (mOpenGLEnabled == 1 || mOpenGLEnabled == 2)