aboutsummaryrefslogtreecommitdiff
path: root/src/client
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 /src/client
parent8908a9101608d3343023b470743ef63f1c44b0b7 (diff)
downloadminetest-5cd7b0c6e4551fd53171fba8b30ac9f0a4e13a36.tar.gz
minetest-5cd7b0c6e4551fd53171fba8b30ac9f0a4e13a36.tar.bz2
minetest-5cd7b0c6e4551fd53171fba8b30ac9f0a4e13a36.zip
Remove remains of video mode querying
Diffstat (limited to 'src/client')
-rw-r--r--src/client/renderingengine.cpp15
-rw-r--r--src/client/renderingengine.h1
2 files changed, 0 insertions, 16 deletions
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);