mirror of
https://github.com/libretro/RetroArch
synced 2025-02-11 15:40:28 +00:00
(Vita) Update vita2d video driver
This commit is contained in:
parent
3b54e81d00
commit
3b04de6a5f
@ -257,7 +257,7 @@ endif
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_VITA2D), 1)
|
ifeq ($(HAVE_VITA2D), 1)
|
||||||
LIBS += -lvita2d
|
LIBS := -lvita2d $(LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_RSOUND), 1)
|
ifeq ($(HAVE_RSOUND), 1)
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
#include "../../driver.h"
|
#include "../../driver.h"
|
||||||
#include "../video_viewport.h"
|
#include "../video_viewport.h"
|
||||||
|
|
||||||
|
#include <vita2d.h>
|
||||||
|
|
||||||
static void *vita2d_gfx_init(const video_info_t *video,
|
static void *vita2d_gfx_init(const video_info_t *video,
|
||||||
const input_driver_t **input, void **input_data)
|
const input_driver_t **input, void **input_data)
|
||||||
{
|
{
|
||||||
@ -41,6 +43,12 @@ static bool vita2d_gfx_frame(void *data, const void *frame,
|
|||||||
(void)pitch;
|
(void)pitch;
|
||||||
(void)msg;
|
(void)msg;
|
||||||
|
|
||||||
|
vita2d_start_drawing();
|
||||||
|
vita2d_clear_screen();
|
||||||
|
|
||||||
|
vita2d_end_drawing();
|
||||||
|
vita2d_swap_buffers();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user