diff options
-rw-r--r-- | doc/minetest.6 | 2 | ||||
-rw-r--r-- | src/client/renderingengine.cpp | 15 | ||||
-rw-r--r-- | src/client/renderingengine.h | 1 |
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); |