mirror of
https://github.com/edubart/otclient.git
synced 2025-11-03 20:26:23 +01:00
BEAWARE all game functionality is disabled with this commit for a while
* rework client modules * hide main window when loading * remake top menu functions * rework modules autoload * improve path resolving for otml and lua * move core_widgets to core_lib * fix tooltip issues * split some styles * add bit32 lua library * fix assert issues * fix compilation on linux 32 systems * rework gcc compile options * renable and fix some warnings * remove unused constants * speedup sprite cache * move UIGame to lua (not funcional yet) * fix a lot of issues in x11 window * fix crash handler * add some warnings do uiwidget and much more...
This commit is contained in:
@@ -36,7 +36,6 @@ WIN32Window::WIN32Window()
|
||||
m_deviceContext = 0;
|
||||
m_glContext = 0;
|
||||
m_cursor = 0;
|
||||
m_maximized = false;
|
||||
m_minimumSize = Size(600,480);
|
||||
|
||||
m_keyMap[VK_ESCAPE] = Fw::KeyEscape;
|
||||
@@ -675,7 +674,9 @@ void WIN32Window::setFullscreen(bool fullscreen)
|
||||
return;
|
||||
|
||||
DWORD dwStyle = GetWindowLong(m_window, GWL_STYLE);
|
||||
static WINDOWPLACEMENT wpPrev = { sizeof(wpPrev) };
|
||||
static WINDOWPLACEMENT wpPrev;
|
||||
wpPrev.length = sizeof(wpPrev);
|
||||
|
||||
if(fullscreen) {
|
||||
GetWindowPlacement(m_window, &wpPrev);
|
||||
SetWindowLong(m_window, GWL_STYLE, dwStyle & ~WS_OVERLAPPEDWINDOW);
|
||||
|
||||
Reference in New Issue
Block a user