freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype-demos][master] * graph/win32/grwin32.c (Message_


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype-demos][master] * graph/win32/grwin32.c (Message_Process): Drop some sizing messages.
Date: Thu, 09 Feb 2023 03:20:03 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType Demo Programs

Commits:

  • fe84b685
    by Alexei Podtelezhnikov at 2023-02-08T22:15:33-05:00
    * 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.
    

1 changed file:

Changes:

  • graph/win32/grwin32.c
    ... ... @@ -603,39 +603,6 @@ LRESULT CALLBACK Message_Process( HWND handle, UINT mess,
    603 603
             PostThreadMessage( surface->host, WM_RESIZE, wParam, lParam );
    
    604 604
           break;
    
    605 605
     
    
    606
    -    case WM_SIZING:
    
    607
    -      {
    
    608
    -        PRECT  r = (PRECT)lParam;
    
    609
    -        RECT   WndRect;
    
    610
    -        int    x, y;
    
    611
    -
    
    612
    -        GetClientRect( handle, &WndRect );
    
    613
    -
    
    614
    -        y = wParam >= 6 ? wParam -= 6, 'B' :
    
    615
    -            wParam >= 3 ? wParam -= 3, 'T' : ' ';
    
    616
    -        x = wParam == 2 ? 'R' :
    
    617
    -            wParam == 1 ? 'L' : ' ';
    
    618
    -
    
    619
    -        LOG(( "WM_SIZING %c%c : ( %d %d %d %d )   "
    
    620
    -              "ClientArea : ( %d %d )\n",
    
    621
    -              y, x, r->left, r->top, r->right, r->bottom,
    
    622
    -              WndRect.right, WndRect.bottom ));
    
    623
    -
    
    624
    -        PostThreadMessage( surface->host, WM_RESIZE, SIZE_RESTORED,
    
    625
    -                           MAKELPARAM( WndRect.right, WndRect.bottom ) );
    
    626
    -      }
    
    627
    -      return TRUE;  /* required */
    
    628
    -
    
    629
    -    case WM_EXITSIZEMOVE:
    
    630
    -      {
    
    631
    -        RECT  WndRect;
    
    632
    -
    
    633
    -        GetClientRect( handle, &WndRect );
    
    634
    -        PostThreadMessage( surface->host, WM_RESIZE, SIZE_RESTORED,
    
    635
    -                           MAKELPARAM( WndRect.right, WndRect.bottom ) );
    
    636
    -      }
    
    637
    -      break;
    
    638
    -
    
    639 606
         case WM_KEYDOWN:
    
    640 607
         case WM_SYSKEYDOWN:
    
    641 608
           {
    


  • reply via email to

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