summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2023-04-26 15:02:42 -0700
committerDentomologist <dentomologist@gmail.com>2023-04-26 15:22:54 -0700
commit1f74653501fec1dd059705f8a3eff1edb259d4d9 (patch)
tree803993ed1ee629d3cd3a1f406970f82aea6b4576 /Source
parentadbee91dcadb401332c0dd713c86f1e0233c7786 (diff)
VideoUtils: Remove unused function GetAvailableResolutions
The ability to change the fullscreen resolution througnh the UI was removed in aa4088a, leaving this function unused.
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/UICommon/VideoUtils.cpp37
-rw-r--r--Source/Core/UICommon/VideoUtils.h9
2 files changed, 0 insertions, 46 deletions
diff --git a/Source/Core/UICommon/VideoUtils.cpp b/Source/Core/UICommon/VideoUtils.cpp
index 449117ccb8..17947e81b2 100644
--- a/Source/Core/UICommon/VideoUtils.cpp
+++ b/Source/Core/UICommon/VideoUtils.cpp
@@ -6,45 +6,8 @@
#include "Common/Assert.h"
#include "VideoCommon/VideoConfig.h"
-#ifdef _WIN32
-#include <Windows.h>
-#endif
-
-#ifdef HAVE_XRANDR
-#include "UICommon/X11Utils.h"
-#endif
-
namespace VideoUtils
{
-#if !defined(__APPLE__)
-std::vector<std::string> GetAvailableResolutions(X11Utils::XRRConfiguration* xrr_config)
-{
- std::vector<std::string> resos;
-#ifdef _WIN32
- DWORD iModeNum = 0;
- DEVMODE dmi;
- ZeroMemory(&dmi, sizeof(dmi));
- dmi.dmSize = sizeof(dmi);
-
- while (EnumDisplaySettings(nullptr, iModeNum++, &dmi) != 0)
- {
- char res[100];
- sprintf(res, "%dx%d", dmi.dmPelsWidth, dmi.dmPelsHeight);
- std::string strRes(res);
- // Only add unique resolutions
- if (std::find(resos.begin(), resos.end(), strRes) == resos.end())
- {
- resos.push_back(strRes);
- }
- ZeroMemory(&dmi, sizeof(dmi));
- }
-#elif defined(HAVE_XRANDR) && HAVE_XRANDR
- xrr_config->AddResolutions(resos);
-#endif
- return resos;
-}
-#endif
-
std::vector<std::string> GetAvailableAntialiasingModes(int& msaa_modes)
{
std::vector<std::string> modes;
diff --git a/Source/Core/UICommon/VideoUtils.h b/Source/Core/UICommon/VideoUtils.h
index 4c9fd06f9a..492813adab 100644
--- a/Source/Core/UICommon/VideoUtils.h
+++ b/Source/Core/UICommon/VideoUtils.h
@@ -6,16 +6,7 @@
#include <string>
#include <vector>
-namespace X11Utils
-{
-class XRRConfiguration;
-}
-
namespace VideoUtils
{
-#if !defined(__APPLE__)
-std::vector<std::string> GetAvailableResolutions(X11Utils::XRRConfiguration* xrr_config);
-#endif
-
std::vector<std::string> GetAvailableAntialiasingModes(int& m_msaa_modes);
} // namespace VideoUtils