mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Removed carriage returns from previous patch
This commit is contained in:
parent
7b0ccd32e5
commit
f4b26cd8e0
@ -1077,23 +1077,23 @@ SDL_RegisterApp(char *name, Uint32 style, void *hInst)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Register the application class */
|
/* Register the application class */
|
||||||
wcex.cbSize = sizeof(WNDCLASSEX);
|
wcex.cbSize = sizeof(WNDCLASSEX);
|
||||||
wcex.hCursor = NULL;
|
wcex.hCursor = NULL;
|
||||||
wcex.hIcon = NULL;
|
wcex.hIcon = NULL;
|
||||||
wcex.hIconSm = NULL;
|
wcex.hIconSm = NULL;
|
||||||
wcex.lpszMenuName = NULL;
|
wcex.lpszMenuName = NULL;
|
||||||
wcex.lpszClassName = SDL_Appname;
|
wcex.lpszClassName = SDL_Appname;
|
||||||
wcex.style = SDL_Appstyle;
|
wcex.style = SDL_Appstyle;
|
||||||
wcex.hbrBackground = NULL;
|
wcex.hbrBackground = NULL;
|
||||||
wcex.lpfnWndProc = WIN_WindowProc;
|
wcex.lpfnWndProc = WIN_WindowProc;
|
||||||
wcex.hInstance = SDL_Instance;
|
wcex.hInstance = SDL_Instance;
|
||||||
wcex.cbClsExtra = 0;
|
wcex.cbClsExtra = 0;
|
||||||
wcex.cbWndExtra = 0;
|
wcex.cbWndExtra = 0;
|
||||||
|
|
||||||
/* Use the first icon as a default icon, like in the Explorer */
|
/* Use the first icon as a default icon, like in the Explorer */
|
||||||
GetModuleFileName(SDL_Instance, path, MAX_PATH);
|
GetModuleFileName(SDL_Instance, path, MAX_PATH);
|
||||||
ExtractIconEx(path, 0, &wcex.hIcon, &wcex.hIconSm, 1);
|
ExtractIconEx(path, 0, &wcex.hIcon, &wcex.hIconSm, 1);
|
||||||
|
|
||||||
if (!RegisterClassEx(&wcex)) {
|
if (!RegisterClassEx(&wcex)) {
|
||||||
return SDL_SetError("Couldn't register application class");
|
return SDL_SetError("Couldn't register application class");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user