- bugfix for windows build and attempt to handle opengl fullscreen init better on windows

This commit is contained in:
Mark Vejvoda 2012-07-04 01:23:04 +00:00
parent d9e2a64bb3
commit 2ad24dbe2a
2 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,7 @@ private:
public:
static string application_binary;
static bool disableBacktrace;
static string getStackTrace();
void install(string dumpFileName);

View File

@ -411,6 +411,11 @@ void init_win32() {
::SetClassLong(hwnd, GCL_HICON, iconPtr);
#endif
SetWindowLong(hwnd, GWL_EXSTYLE, 0);
SetWindowLong(hwnd, GWL_STYLE, WS_POPUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS);
SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_FRAMECHANGED | SWP_SHOWWINDOW);
//SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, fsWidth, fsHeight, SWP_SHOWWINDOW);
}
void done_win32() {
::DestroyIcon(icon);