From 238c66f26cd87d70fa385460de859a75a025ac6f Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Fri, 30 Dec 2011 02:53:34 -0200 Subject: [PATCH] more changes to work on ARM --- modules/client/client.lua | 2 +- src/framework/platform/unixcrashhandler.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/client/client.lua b/modules/client/client.lua index c70a83d9..55a97029 100644 --- a/modules/client/client.lua +++ b/modules/client/client.lua @@ -4,7 +4,7 @@ Client = { } function Client.init() -- initialize in fullscreen mode on mobile devices if g_window.getPlatformType() == "X11-EGL" then - g_window:setFullscreen() + g_window:setFullscreen(true) else g_window.move({ x=220, y=220 }) g_window.resize({ width=800, height=480 }) diff --git a/src/framework/platform/unixcrashhandler.cpp b/src/framework/platform/unixcrashhandler.cpp index 195929a8..c0892894 100644 --- a/src/framework/platform/unixcrashhandler.cpp +++ b/src/framework/platform/unixcrashhandler.cpp @@ -41,7 +41,7 @@ void crashHandler(int signum, siginfo_t* info, void* secret) std::stringstream ss; ss.flags(std::ios::hex | std::ios::showbase); -#if __WORDSIZE == 32 +#ifdef REG_EIP ss << ss << " at eip = " << context.uc_mcontext.gregs[REG_EIP] << std::endl; ss << " eax = " << context.uc_mcontext.gregs[REG_EAX] << std::endl; @@ -54,7 +54,7 @@ void crashHandler(int signum, siginfo_t* info, void* secret) ss << " esp = " << context.uc_mcontext.gregs[REG_ESP] << std::endl; ss << " efl = " << context.uc_mcontext.gregs[REG_EFL] << std::endl; ss << std::endl; -#elif __WORDSIZE == 64 +#elifdef REG_RIP ss << " at rip = " << context.uc_mcontext.gregs[REG_RIP] << std::endl; ss << " rax = " << context.uc_mcontext.gregs[REG_RAX] << std::endl; ss << " rbx = " << context.uc_mcontext.gregs[REG_RBX] << std::endl;