Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Minor changes for it to compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbens committed Aug 4, 2008
1 parent 9d0b65c commit 4529daf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/video/win32/SDL_win32window.c
Expand Up @@ -420,18 +420,18 @@ WIN_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
int
SDL_HelperWindowCreate(void)
{
HINSTANCE hInstance = pGetModuleHandleA(NULL);
HINSTANCE hInstance = GetModuleHandleA(NULL);
const char *class_name = "SDLHelperWindowInputCatcher";
const char *win_name = "SDLHelperWindowInputMsgWindow";
WNDCLASSEX wce;

ZeroMemory(&wce, sizeof (wce));
wce.cbSize = sizeof(WNDCLASSEX);
wce.lpfnWndProc = RawWndProc;
wce.lpfnWndProc = NULL;
wce.lpszClassName = class_name;
wce.hInstance = hInstance;

SDL_HelperWindow = pCreateWindowExA(0, class_name, win_name, WS_OVERLAPPEDWINDOW,
SDL_HelperWindow = CreateWindowExA(0, class_name, win_name, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, HWND_MESSAGE, NULL, hInstance, NULL);

Expand All @@ -451,7 +451,7 @@ void
SDL_HelperWindowDestroy(void)
{
if (SDL_HelperWindow) {
pDestroyWindow(SDL_HelperWindow);
DestroyWindow(SDL_HelperWindow);
SDL_HelperWindow = NULL;
}
}
Expand Down

0 comments on commit 4529daf

Please sign in to comment.