more changes to work on ARM

master
Eduardo Bart 13 years ago
parent e95973174c
commit 238c66f26c

@ -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 })

@ -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;

Loading…
Cancel
Save