mirror of
https://github.com/minetest/minetest.git
synced 2024-09-12 00:26:50 +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
|
.B \-\-random\-input
|
||||||
Enable random user input, for testing (client only)
|
Enable random user input, for testing (client only)
|
||||||
.TP
|
.TP
|
||||||
.B \-\-videomodes
|
|
||||||
List available video modes (client only)
|
|
||||||
.TP
|
.TP
|
||||||
.B \-\-speedtests
|
.B \-\-speedtests
|
||||||
Run speed tests
|
Run speed tests
|
||||||
|
@ -638,25 +638,10 @@ float RenderingEngine::getDisplayDensity()
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
v2u32 RenderingEngine::getDisplaySize()
|
|
||||||
{
|
|
||||||
IrrlichtDevice *nulldevice = createDevice(video::EDT_NULL);
|
|
||||||
|
|
||||||
core::dimension2d<u32> deskres =
|
|
||||||
nulldevice->getVideoModeList()->getDesktopResolution();
|
|
||||||
nulldevice->drop();
|
|
||||||
|
|
||||||
return deskres;
|
|
||||||
}
|
|
||||||
|
|
||||||
#else // __ANDROID__
|
#else // __ANDROID__
|
||||||
float RenderingEngine::getDisplayDensity()
|
float RenderingEngine::getDisplayDensity()
|
||||||
{
|
{
|
||||||
return porting::getDisplayDensity();
|
return porting::getDisplayDensity();
|
||||||
}
|
}
|
||||||
|
|
||||||
v2u32 RenderingEngine::getDisplaySize()
|
|
||||||
{
|
|
||||||
return porting::getDisplaySize();
|
|
||||||
}
|
|
||||||
#endif // __ANDROID__
|
#endif // __ANDROID__
|
||||||
|
@ -55,7 +55,6 @@ public:
|
|||||||
|
|
||||||
static const VideoDriverInfo &getVideoDriverInfo(irr::video::E_DRIVER_TYPE type);
|
static const VideoDriverInfo &getVideoDriverInfo(irr::video::E_DRIVER_TYPE type);
|
||||||
static float getDisplayDensity();
|
static float getDisplayDensity();
|
||||||
static v2u32 getDisplaySize();
|
|
||||||
|
|
||||||
bool setupTopLevelWindow(const std::string &name);
|
bool setupTopLevelWindow(const std::string &name);
|
||||||
void setupTopLevelXorgWindow(const std::string &name);
|
void setupTopLevelXorgWindow(const std::string &name);
|
||||||
|
Loading…
Reference in New Issue
Block a user