Commit f2f32ae6 authored by DailyShana's avatar DailyShana

use unicode version windows api

parent d9b2ea95
...@@ -85,10 +85,10 @@ bool Game::Initialize() { ...@@ -85,10 +85,10 @@ bool Game::Initialize() {
else else
hWnd = reinterpret_cast<HWND>(exposedData.OpenGLWin32.HWnd); hWnd = reinterpret_cast<HWND>(exposedData.OpenGLWin32.HWnd);
if(hWnd) { if(hWnd) {
LONG style = GetWindowLong(hWnd, GWL_STYLE); LONG style = GetWindowLongW(hWnd, GWL_STYLE);
style |= WS_MINIMIZEBOX; style |= WS_MINIMIZEBOX;
SetWindowLong(hWnd, GWL_STYLE, style); SetWindowLongW(hWnd, GWL_STYLE, style);
SendMessage(hWnd, WM_NCPAINT, 1, 0); SendMessageW(hWnd, WM_NCPAINT, 1, 0);
} }
#endif #endif
SetWindowsIcon(); SetWindowsIcon();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment