From 1838a3fd696782b1733a435bbb25accf3e40d1f3 Mon Sep 17 00:00:00 2001 From: sapier Date: Sat, 5 Apr 2014 14:12:36 +0200 Subject: Add support for dpi based HUD scaling Add support for (configurable) multiline hotbar Improved screensize handling Add userdefined gui scale by BlockMen --- src/porting.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/porting.h') diff --git a/src/porting.h b/src/porting.h index f19ff3a07..90bfa2502 100644 --- a/src/porting.h +++ b/src/porting.h @@ -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 +#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 -- cgit v1.2.3