mirror of
https://github.com/edubart/otclient.git
synced 2025-12-17 22:27:11 +01:00
more changes to work on ARM
This commit is contained in:
@@ -54,6 +54,7 @@ public:
|
||||
|
||||
virtual Size getDisplaySize() = 0;
|
||||
virtual std::string getClipboardText() = 0;
|
||||
virtual std::string getPlatformType() = 0;
|
||||
|
||||
int getDisplayWidth() { return getDisplaySize().width(); }
|
||||
int getDisplayHeight() { return getDisplaySize().width(); }
|
||||
|
||||
@@ -53,6 +53,7 @@ void crashHandler(int signum, siginfo_t* info, void* secret)
|
||||
ss << " ebp = " << context.uc_mcontext.gregs[REG_EBP] << std::endl;
|
||||
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
|
||||
ss << " at rip = " << context.uc_mcontext.gregs[REG_RIP] << std::endl;
|
||||
ss << " rax = " << context.uc_mcontext.gregs[REG_RAX] << std::endl;
|
||||
@@ -64,8 +65,8 @@ void crashHandler(int signum, siginfo_t* info, void* secret)
|
||||
ss << " rbp = " << context.uc_mcontext.gregs[REG_RBP] << std::endl;
|
||||
ss << " rsp = " << context.uc_mcontext.gregs[REG_RSP] << std::endl;
|
||||
ss << " efl = " << context.uc_mcontext.gregs[REG_EFL] << std::endl;
|
||||
#endif
|
||||
ss << std::endl;
|
||||
#endif
|
||||
ss.flags(std::ios::dec);
|
||||
ss << " backtrace:" << std::endl;
|
||||
|
||||
|
||||
@@ -610,3 +610,8 @@ std::string WIN32Window::getClipboardText()
|
||||
return text;
|
||||
}
|
||||
|
||||
std::string WIN32Window::getPlatformType()
|
||||
{
|
||||
return "WIN32-WGL";
|
||||
}
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ public:
|
||||
|
||||
Size getDisplaySize();
|
||||
std::string getClipboardText();
|
||||
std::string getPlatformType();
|
||||
|
||||
bool isMaximized() { return m_maximized; }
|
||||
|
||||
|
||||
@@ -904,6 +904,15 @@ std::string X11Window::getClipboardText()
|
||||
return clipboardText;
|
||||
}
|
||||
|
||||
std::string X11Window::getPlatformType()
|
||||
{
|
||||
#ifndef OPENGL_ES2
|
||||
return "X11-GLX";
|
||||
#else
|
||||
return "X11-EGL";
|
||||
#endif
|
||||
}
|
||||
|
||||
bool X11Window::isMaximized()
|
||||
{
|
||||
Atom wmState = XInternAtom(m_display, "_NET_WM_STATE", False);
|
||||
|
||||
@@ -75,6 +75,7 @@ public:
|
||||
|
||||
Size getDisplaySize();
|
||||
std::string getClipboardText();
|
||||
std::string getPlatformType();
|
||||
|
||||
bool isMaximized();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user