mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-20 22:35:41 +00:00
psp: Hook up event subsystem init/quit.
Fixes #8554.
(cherry picked from commit 0e9d050296)
This commit is contained in:
@@ -23,5 +23,7 @@
|
||||
|
||||
extern void PSP_InitOSKeymap(SDL_VideoDevice *_this);
|
||||
extern void PSP_PumpEvents(SDL_VideoDevice *_this);
|
||||
extern int PSP_EventInit(SDL_VideoDevice *_this);
|
||||
extern void PSP_EventQuit(SDL_VideoDevice *_this);
|
||||
|
||||
/* end of SDL_pspevents_c.h ... */
|
||||
|
||||
@@ -131,6 +131,10 @@ int PSP_VideoInit(SDL_VideoDevice *_this)
|
||||
{
|
||||
SDL_DisplayMode mode;
|
||||
|
||||
if (PSP_EventInit(_this) == -1) {
|
||||
return -1; /* error string would already be set */
|
||||
}
|
||||
|
||||
SDL_zero(mode);
|
||||
mode.w = 480;
|
||||
mode.h = 272;
|
||||
@@ -145,8 +149,9 @@ int PSP_VideoInit(SDL_VideoDevice *_this)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void PSP_VideoQuit(SDL_VideoDevice *_this)
|
||||
void PSP_VideoQuit(_THIS)
|
||||
{
|
||||
PSP_EventQuit(_this);
|
||||
}
|
||||
|
||||
int PSP_GetDisplayModes(SDL_VideoDevice *_this, SDL_VideoDisplay *display)
|
||||
|
||||
Reference in New Issue
Block a user