mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add support for dpi based HUD scaling
Add support for (configurable) multiline hotbar Improved screensize handling Add userdefined gui scale by BlockMen
This commit is contained in:
parent
8d31534710
commit
1838a3fd69
13 changed files with 266 additions and 151 deletions
|
@ -28,12 +28,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#ifdef _WIN32_WINNT
|
||||
#undef _WIN32_WINNT
|
||||
#endif
|
||||
#define _WIN32_WINNT 0x0501 // We need to do this before any other headers
|
||||
#define _WIN32_WINNT 0x0501 // We need to do this before any other headers
|
||||
// because those might include sdkddkver.h which defines _WIN32_WINNT if not already set
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
#include "irrlicht.h"
|
||||
#include "irrlichttypes.h" // u32
|
||||
#include "irrlichttypes_extrabloated.h"
|
||||
#include "debug.h"
|
||||
#include "constants.h"
|
||||
#include "gettime.h"
|
||||
|
@ -178,6 +180,8 @@ bool threadSetPriority(threadid_t tid, int prio);
|
|||
*/
|
||||
std::string get_sysinfo();
|
||||
|
||||
void initIrrlicht(irr::IrrlichtDevice * );
|
||||
|
||||
/*
|
||||
Resolution is 10-20ms.
|
||||
Remember to check for overflows.
|
||||
|
@ -318,6 +322,13 @@ inline u32 getTime(TimePrecision prec)
|
|||
inline void setThreadName(const char* name) {}
|
||||
#endif
|
||||
|
||||
#ifndef SERVER
|
||||
float getDisplayDensity();
|
||||
|
||||
v2u32 getDisplaySize();
|
||||
v2u32 getWindowSize();
|
||||
#endif
|
||||
|
||||
} // namespace porting
|
||||
|
||||
#endif // PORTING_HEADER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue