aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-05-26 17:41:23 +0200
committersfan5 <sfan5@live.de>2022-05-29 14:00:19 +0200
commit5cd7b0c6e4551fd53171fba8b30ac9f0a4e13a36 (patch)
treec43ae6109ba20591d9518fa8324b94e86da52b76
parent8908a9101608d3343023b470743ef63f1c44b0b7 (diff)
downloadminetest-5cd7b0c6e4551fd53171fba8b30ac9f0a4e13a36.tar.gz
minetest-5cd7b0c6e4551fd53171fba8b30ac9f0a4e13a36.tar.bz2
minetest-5cd7b0c6e4551fd53171fba8b30ac9f0a4e13a36.zip
Remove remains of video mode querying
-rw-r--r--doc/minetest.62
-rw-r--r--src/client/renderingengine.cpp15
-rw-r--r--src/client/renderingengine.h1
3 files changed, 0 insertions, 18 deletions
diff --git a/doc/minetest.6 b/doc/minetest.6
index 6a3601f80..27a3d0024 100644
--- a/doc/minetest.6
+++ b/doc/minetest.6
@@ -92,8 +92,6 @@ Set password from contents of file
.B \-\-random\-input
Enable random user input, for testing (client only)
.TP
-.B \-\-videomodes
-List available video modes (client only)
.TP
.B \-\-speedtests
Run speed tests
diff --git a/src/client/renderingengine.cpp b/src/client/renderingengine.cpp
index 455d5e538..7afca4500 100644
--- a/src/client/renderingengine.cpp
+++ b/src/client/renderingengine.cpp
@@ -638,25 +638,10 @@ float RenderingEngine::getDisplayDensity()
#endif
-v2u32 RenderingEngine::getDisplaySize()
-{
- IrrlichtDevice *nulldevice = createDevice(video::EDT_NULL);
-
- core::dimension2d<u32> deskres =
- nulldevice->getVideoModeList()->getDesktopResolution();
- nulldevice->drop();
-
- return deskres;
-}
-
#else // __ANDROID__
float RenderingEngine::getDisplayDensity()
{
return porting::getDisplayDensity();
}
-v2u32 RenderingEngine::getDisplaySize()
-{
- return porting::getDisplaySize();
-}
#endif // __ANDROID__
diff --git a/src/client/renderingengine.h b/src/client/renderingengine.h
index 6f104bba9..38420010f 100644
--- a/src/client/renderingengine.h
+++ b/src/client/renderingengine.h
@@ -55,7 +55,6 @@ public:
static const VideoDriverInfo &getVideoDriverInfo(irr::video::E_DRIVER_TYPE type);
static float getDisplayDensity();
- static v2u32 getDisplaySize();
bool setupTopLevelWindow(const std::string &name);
void setupTopLevelXorgWindow(const std::string &name);