mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
[VITA] Implement check_window.
This commit is contained in:
parent
637319c938
commit
616759ed8c
@ -21,28 +21,7 @@
|
||||
static void vita_swap_interval(void *data, int interval)
|
||||
{
|
||||
(void)data;
|
||||
#ifdef VITA
|
||||
vglWaitVblankStart(interval);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void vita_check_window(void *data, bool *quit,
|
||||
bool *resize, unsigned *width, unsigned *height, bool is_shutdown)
|
||||
{
|
||||
(void)data;
|
||||
(void)quit;
|
||||
(void)width;
|
||||
(void)height;
|
||||
(void)resize;
|
||||
}
|
||||
|
||||
static void vita_swap_buffers(void *data, void *data2)
|
||||
{
|
||||
(void)data;
|
||||
#ifdef VITA
|
||||
vglStopRendering();
|
||||
vglStartRendering();
|
||||
#endif
|
||||
}
|
||||
|
||||
static void vita_get_video_size(void *data, unsigned *width, unsigned *height)
|
||||
@ -52,6 +31,30 @@ static void vita_get_video_size(void *data, unsigned *width, unsigned *height)
|
||||
*height = 544;
|
||||
}
|
||||
|
||||
static void vita_check_window(void *data, bool *quit,
|
||||
bool *resize, unsigned *width, unsigned *height, bool is_shutdown)
|
||||
{
|
||||
unsigned new_width, new_height;
|
||||
|
||||
vita_get_video_size(data, &new_width, &new_height);
|
||||
|
||||
if (new_width != *width || new_height != *height)
|
||||
{
|
||||
*width = new_width;
|
||||
*height = new_height;
|
||||
*resize = true;
|
||||
}
|
||||
|
||||
*quit = (bool)false;
|
||||
}
|
||||
|
||||
static void vita_swap_buffers(void *data, void *data2)
|
||||
{
|
||||
(void)data;
|
||||
vglStopRendering();
|
||||
vglStartRendering();
|
||||
}
|
||||
|
||||
static bool vita_set_video_mode(void *data,
|
||||
video_frame_info_t *video_info,
|
||||
unsigned width, unsigned height,
|
||||
|
Loading…
x
Reference in New Issue
Block a user