freetype-commit
[Top][All Lists]
Advanced

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

[freetype2-demos] master 7706a59: [graph/win32] Consolidate resizing cal


From: Werner Lemberg
Subject: [freetype2-demos] master 7706a59: [graph/win32] Consolidate resizing calls.
Date: Sat, 1 Jan 2022 14:59:36 -0500 (EST)

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

    [graph/win32] Consolidate resizing calls.
    
    Suggested by Dmitry Timoshkov.
    
    * graph/win32/grwin32.c (gr_win32_surface_listen_event): Purge
    obsolete WM_RESIZE.
---
 graph/win32/grwin32.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/graph/win32/grwin32.c b/graph/win32/grwin32.c
index 92e8fd9..e26d228 100644
--- a/graph/win32/grwin32.c
+++ b/graph/win32/grwin32.c
@@ -378,6 +378,9 @@ gr_win32_surface_listen_event( grWin32Surface*  surface,
     switch ( msg.message )
     {
     case WM_RESIZE:
+      while( PeekMessage( &msg, (HWND)-1, WM_RESIZE, WM_RESIZE, PM_REMOVE ) )
+        continue;
+
       {
         int  width  = LOWORD(msg.lParam);
         int  height = HIWORD(msg.lParam);



reply via email to

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