]> git.lizzy.rs Git - minetest.git/blobdiff - src/clientiface.h
Add support for dpi based HUD scaling
[minetest.git] / src / clientiface.h
index 752e2bb8a466329f18f9e2ec55793c4674c13767..89e0f41b90dd407199989c11a4d12fe4aa579b2e 100644 (file)
@@ -141,7 +141,7 @@ namespace con {
        class Connection;
 }
 
-#define ARRAYSIZE(a) (sizeof(a) / sizeof((a)[0]))
+#define CI_ARRAYSIZE(a) (sizeof(a) / sizeof((a)[0]))
 
 enum ClientState
 {
@@ -433,7 +433,7 @@ class ClientInterface {
        { assert(m_env == 0); m_env = env; }
 
        static std::string state2Name(ClientState state) {
-               assert((int) state < ARRAYSIZE(statenames));
+               assert((int) state < CI_ARRAYSIZE(statenames));
                return statenames[state];
        }