mirror of
https://github.com/minetest/minetest.git
synced 2024-08-18 20:44:16 +02:00
Remove remains of video mode querying
This commit is contained in:
parent
8908a91016
commit
5cd7b0c6e4
@ -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
|
||||
|
@ -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__
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user