diff options
author | sfan5 <sfan5@live.de> | 2022-05-26 17:41:23 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-05-29 14:00:19 +0200 |
commit | 5cd7b0c6e4551fd53171fba8b30ac9f0a4e13a36 (patch) | |
tree | c43ae6109ba20591d9518fa8324b94e86da52b76 /src/client | |
parent | 8908a9101608d3343023b470743ef63f1c44b0b7 (diff) | |
download | minetest-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.cpp | 15 | ||||
-rw-r--r-- | src/client/renderingengine.h | 1 |
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); |