src/video/windows/SDL_windowsevents.c
changeset 7037 3fedf1f25b94
parent 7029 377cc88f3dc8
child 7060 9d96148c2e3e
equal deleted inserted replaced
7036:8c891504e325 7037:3fedf1f25b94
   807     class.style = SDL_Appstyle;
   807     class.style = SDL_Appstyle;
   808     class.lpfnWndProc = WIN_WindowProc;
   808     class.lpfnWndProc = WIN_WindowProc;
   809     class.cbWndExtra = 0;
   809     class.cbWndExtra = 0;
   810     class.cbClsExtra = 0;
   810     class.cbClsExtra = 0;
   811     if (!RegisterClass(&class)) {
   811     if (!RegisterClass(&class)) {
   812         SDL_SetError("Couldn't register application class");
   812         return SDL_SetError("Couldn't register application class");
   813         return (-1);
       
   814     }
   813     }
   815 
   814 
   816     app_registered = 1;
   815     app_registered = 1;
   817     return (0);
   816     return 0;
   818 }
   817 }
   819 
   818 
   820 /* Unregisters the windowclass registered in SDL_RegisterApp above. */
   819 /* Unregisters the windowclass registered in SDL_RegisterApp above. */
   821 void
   820 void
   822 SDL_UnregisterApp()
   821 SDL_UnregisterApp()