(Vita) Update vita2d video driver

This commit is contained in:
Sergi Granell 2015-08-30 20:11:57 +02:00
parent 3b54e81d00
commit 3b04de6a5f
2 changed files with 9 additions and 1 deletions

View File

@ -257,7 +257,7 @@ endif
endif
ifeq ($(HAVE_VITA2D), 1)
LIBS += -lvita2d
LIBS := -lvita2d $(LIBS)
endif
ifeq ($(HAVE_RSOUND), 1)

View File

@ -17,6 +17,8 @@
#include "../../driver.h"
#include "../video_viewport.h"
#include <vita2d.h>
static void *vita2d_gfx_init(const video_info_t *video,
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)msg;
vita2d_start_drawing();
vita2d_clear_screen();
vita2d_end_drawing();
vita2d_swap_buffers();
return true;
}