ソースを参照

Fix VC++ warnings

Camilla Berglund 9 年 前
コミット
20574fa81f
1 ファイル変更4 行追加4 行削除
  1. 4 4
      src/win32_window.c

+ 4 - 4
src/win32_window.c

@@ -1225,14 +1225,14 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
     if (monitor)
     if (monitor)
     {
     {
         GLFWvidmode mode;
         GLFWvidmode mode;
-        DWORD style = GetWindowLongPtrW(window->win32.handle, GWL_STYLE);
+        DWORD style = GetWindowLongW(window->win32.handle, GWL_STYLE);
         UINT flags = SWP_SHOWWINDOW | SWP_NOACTIVATE | SWP_NOCOPYBITS;
         UINT flags = SWP_SHOWWINDOW | SWP_NOACTIVATE | SWP_NOCOPYBITS;
 
 
         if (window->decorated)
         if (window->decorated)
         {
         {
             style &= ~WS_OVERLAPPEDWINDOW;
             style &= ~WS_OVERLAPPEDWINDOW;
             style |= getWindowStyle(window);
             style |= getWindowStyle(window);
-            SetWindowLongPtrW(window->win32.handle, GWL_STYLE, style);
+            SetWindowLongW(window->win32.handle, GWL_STYLE, style);
 
 
             flags |= SWP_FRAMECHANGED;
             flags |= SWP_FRAMECHANGED;
         }
         }
@@ -1250,14 +1250,14 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
     {
     {
         HWND after;
         HWND after;
         RECT rect = { xpos, ypos, xpos + width, ypos + height };
         RECT rect = { xpos, ypos, xpos + width, ypos + height };
-        DWORD style = GetWindowLongPtrW(window->win32.handle, GWL_STYLE);
+        DWORD style = GetWindowLongW(window->win32.handle, GWL_STYLE);
         UINT flags = SWP_NOACTIVATE | SWP_NOCOPYBITS;
         UINT flags = SWP_NOACTIVATE | SWP_NOCOPYBITS;
 
 
         if (window->decorated)
         if (window->decorated)
         {
         {
             style &= ~WS_POPUP;
             style &= ~WS_POPUP;
             style |= getWindowStyle(window);
             style |= getWindowStyle(window);
-            SetWindowLongPtrW(window->win32.handle, GWL_STYLE, style);
+            SetWindowLongW(window->win32.handle, GWL_STYLE, style);
 
 
             flags |= SWP_FRAMECHANGED;
             flags |= SWP_FRAMECHANGED;
         }
         }