freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype-demos][master] * src/win32/grwin32.c: Cosmetic u


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype-demos][master] * src/win32/grwin32.c: Cosmetic updates.
Date: Sun, 07 Aug 2022 15:08:00 +0000

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

Commits:

  • 759d99fe
    by Alexei Podtelezhnikov at 2022-08-07T11:06:19-04:00
    * src/win32/grwin32.c: Cosmetic updates.
    

1 changed file:

Changes:

  • graph/win32/grwin32.c
    ... ... @@ -404,13 +404,13 @@ DWORD WINAPI Window_ThreadProc( LPVOID lpParameter )
    404 404
            /* int nWidth;              */  WndRect.right - WndRect.left,
    
    405 405
            /* int nHeight;             */  WndRect.bottom - WndRect.top,
    
    406 406
            /* HWND hwndParent;         */  HWND_DESKTOP,
    
    407
    -       /* HMENU hmenu;             */  0,
    
    407
    +       /* HMENU hmenu;             */  NULL,
    
    408 408
            /* HINSTANCE hinst;         */  GetModuleHandle( NULL ),
    
    409 409
            /* void FAR* lpvParam;      */  surface );
    
    410 410
     
    
    411 411
       PostThreadMessage( surface->host, WM_STATUS, (WPARAM)surface->window, 0 );
    
    412 412
     
    
    413
    -  if ( surface->window == 0 )
    
    413
    +  if ( surface->window == NULL )
    
    414 414
         return -1;
    
    415 415
     
    
    416 416
       ShowWindow( surface->window, SW_SHOWNORMAL );
    
    ... ... @@ -684,22 +684,16 @@ LRESULT CALLBACK Message_Process( HWND handle, UINT mess,
    684 684
           /* WNDPROC lpfnWndProc  */ Message_Process,
    
    685 685
           /* int     cbClsExtra   */ 0,
    
    686 686
           /* int     cbWndExtra   */ 0,
    
    687
    -      /* HANDLE  hInstance    */ 0,
    
    688
    -      /* HICON   hIcon        */ 0,
    
    689
    -      /* HCURSOR hCursor      */ 0,
    
    690
    -      /* HBRUSH  hbrBackground*/ 0,
    
    687
    +      /* HANDLE  hInstance    */ GetModuleHandle( NULL ),
    
    688
    +      /* HICON   hIcon        */ LoadIcon( NULL, IDI_APPLICATION),
    
    689
    +      /* HCURSOR hCursor      */ LoadCursor( NULL, IDC_ARROW),
    
    690
    +      /* HBRUSH  hbrBackground*/ GetStockObject( LTGRAY_BRUSH ),
    
    691 691
           /* LPCTSTR lpszMenuName */ NULL,
    
    692 692
           /* LPCTSTR lpszClassName*/ "FreeTypeTestGraphicDriver"
    
    693 693
         };
    
    694 694
     
    
    695 695
         /* register window class */
    
    696
    -
    
    697
    -    ourClass.hInstance    = GetModuleHandle( NULL );
    
    698
    -    ourClass.hIcon        = LoadIcon(0, IDI_APPLICATION);
    
    699
    -    ourClass.hCursor      = LoadCursor(0, IDC_ARROW);
    
    700
    -    ourClass.hbrBackground= GetStockObject( LTGRAY_BRUSH );
    
    701
    -
    
    702
    -    if ( RegisterClass(&ourClass) == 0 )
    
    696
    +    if ( RegisterClass( &ourClass ) == 0 )
    
    703 697
           return -1;
    
    704 698
     
    
    705 699
         return 0;
    


  • reply via email to

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