summaryrefslogtreecommitdiff
path: root/src/gui/setup_video.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r--src/gui/setup_video.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index a009d2d5..143f86ed 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -23,6 +23,7 @@
#include "setup_video.h"
+#include <sstream>
#include <string>
#include <vector>
#include <SDL.h>
@@ -41,8 +42,6 @@
#include "../graphics.h"
#include "../log.h"
-#include "../utils/tostring.h"
-
extern Graphics *graphics;
/**
@@ -90,10 +89,10 @@ ModeListModel::ModeListModel()
} else {
//logger->log("Available Modes");
for (int i = 0; modes[i]; ++i) {
- const std::string modeString =
- toString((int)modes[i]->w) + "x" + toString((int)modes[i]->h);
- //logger->log(modeString.c_str());
- mVideoModes.push_back(modeString);
+ std::stringstream ss;
+ ss << (int)modes[i]->w << "x" << (int)modes[i]->h;
+ //logger->log(ss.str().c_str());
+ mVideoModes.push_back(ss.str());
}
}
}