[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] master 759d99f: * src/win32/grwin32.c: Cosmetic update
From: |
Werner Lemberg |
Subject: |
[freetype2-demos] master 759d99f: * src/win32/grwin32.c: Cosmetic updates. |
Date: |
Sun, 7 Aug 2022 11:08:08 -0400 (EDT) |
branch: master
commit 759d99fef505a7564215fc5c8531aa9759ab0ed3
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>
* src/win32/grwin32.c: Cosmetic updates.
---
graph/win32/grwin32.c | 20 +++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)
diff --git a/graph/win32/grwin32.c b/graph/win32/grwin32.c
index 561fe6d..778a76f 100644
--- a/graph/win32/grwin32.c
+++ b/graph/win32/grwin32.c
@@ -404,13 +404,13 @@ DWORD WINAPI Window_ThreadProc( LPVOID lpParameter )
/* int nWidth; */ WndRect.right - WndRect.left,
/* int nHeight; */ WndRect.bottom - WndRect.top,
/* HWND hwndParent; */ HWND_DESKTOP,
- /* HMENU hmenu; */ 0,
+ /* HMENU hmenu; */ NULL,
/* HINSTANCE hinst; */ GetModuleHandle( NULL ),
/* void FAR* lpvParam; */ surface );
PostThreadMessage( surface->host, WM_STATUS, (WPARAM)surface->window, 0 );
- if ( surface->window == 0 )
+ if ( surface->window == NULL )
return -1;
ShowWindow( surface->window, SW_SHOWNORMAL );
@@ -684,22 +684,16 @@ LRESULT CALLBACK Message_Process( HWND handle, UINT mess,
/* WNDPROC lpfnWndProc */ Message_Process,
/* int cbClsExtra */ 0,
/* int cbWndExtra */ 0,
- /* HANDLE hInstance */ 0,
- /* HICON hIcon */ 0,
- /* HCURSOR hCursor */ 0,
- /* HBRUSH hbrBackground*/ 0,
+ /* HANDLE hInstance */ GetModuleHandle( NULL ),
+ /* HICON hIcon */ LoadIcon( NULL, IDI_APPLICATION),
+ /* HCURSOR hCursor */ LoadCursor( NULL, IDC_ARROW),
+ /* HBRUSH hbrBackground*/ GetStockObject( LTGRAY_BRUSH ),
/* LPCTSTR lpszMenuName */ NULL,
/* LPCTSTR lpszClassName*/ "FreeTypeTestGraphicDriver"
};
/* register window class */
-
- ourClass.hInstance = GetModuleHandle( NULL );
- ourClass.hIcon = LoadIcon(0, IDI_APPLICATION);
- ourClass.hCursor = LoadCursor(0, IDC_ARROW);
- ourClass.hbrBackground= GetStockObject( LTGRAY_BRUSH );
-
- if ( RegisterClass(&ourClass) == 0 )
+ if ( RegisterClass( &ourClass ) == 0 )
return -1;
return 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] master 759d99f: * src/win32/grwin32.c: Cosmetic updates.,
Werner Lemberg <=