freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2-demos] master fe84b685: * graph/win32/grwin32.c (Message_Proc


From: Werner Lemberg
Subject: [freetype2-demos] master fe84b685: * graph/win32/grwin32.c (Message_Process): Drop some sizing messages.
Date: Wed, 8 Feb 2023 22:20:07 -0500 (EST)

branch: master
commit fe84b685fa7e1c7cccdf47e63f7d9a5ede39eefa
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * graph/win32/grwin32.c (Message_Process): Drop some sizing messages.
    
    With the window procedure in a separate thread we only need to forward
    basic WM_SIZE, which is sent frequently enough.
---
 graph/win32/grwin32.c | 33 ---------------------------------
 1 file changed, 33 deletions(-)

diff --git a/graph/win32/grwin32.c b/graph/win32/grwin32.c
index d5af0df2..a54dffe4 100644
--- a/graph/win32/grwin32.c
+++ b/graph/win32/grwin32.c
@@ -603,39 +603,6 @@ LRESULT CALLBACK Message_Process( HWND handle, UINT mess,
         PostThreadMessage( surface->host, WM_RESIZE, wParam, lParam );
       break;
 
-    case WM_SIZING:
-      {
-        PRECT  r = (PRECT)lParam;
-        RECT   WndRect;
-        int    x, y;
-
-        GetClientRect( handle, &WndRect );
-
-        y = wParam >= 6 ? wParam -= 6, 'B' :
-            wParam >= 3 ? wParam -= 3, 'T' : ' ';
-        x = wParam == 2 ? 'R' :
-            wParam == 1 ? 'L' : ' ';
-
-        LOG(( "WM_SIZING %c%c : ( %d %d %d %d )   "
-              "ClientArea : ( %d %d )\n",
-              y, x, r->left, r->top, r->right, r->bottom,
-              WndRect.right, WndRect.bottom ));
-
-        PostThreadMessage( surface->host, WM_RESIZE, SIZE_RESTORED,
-                           MAKELPARAM( WndRect.right, WndRect.bottom ) );
-      }
-      return TRUE;  /* required */
-
-    case WM_EXITSIZEMOVE:
-      {
-        RECT  WndRect;
-
-        GetClientRect( handle, &WndRect );
-        PostThreadMessage( surface->host, WM_RESIZE, SIZE_RESTORED,
-                           MAKELPARAM( WndRect.right, WndRect.bottom ) );
-      }
-      break;
-
     case WM_KEYDOWN:
     case WM_SYSKEYDOWN:
       {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]