From 3b04de6a5fe9f3089e8f5fc80b7df3fb9bafc9b2 Mon Sep 17 00:00:00 2001 From: Sergi Granell Date: Sun, 30 Aug 2015 20:11:57 +0200 Subject: [PATCH] (Vita) Update vita2d video driver --- Makefile.griffin | 2 +- gfx/drivers/vita2d_gfx.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile.griffin b/Makefile.griffin index a51b4f20cd..669e11291a 100644 --- a/Makefile.griffin +++ b/Makefile.griffin @@ -257,7 +257,7 @@ endif endif ifeq ($(HAVE_VITA2D), 1) -LIBS += -lvita2d +LIBS := -lvita2d $(LIBS) endif ifeq ($(HAVE_RSOUND), 1) diff --git a/gfx/drivers/vita2d_gfx.c b/gfx/drivers/vita2d_gfx.c index 2aa4bcbb14..80aed61ea1 100644 --- a/gfx/drivers/vita2d_gfx.c +++ b/gfx/drivers/vita2d_gfx.c @@ -17,6 +17,8 @@ #include "../../driver.h" #include "../video_viewport.h" +#include + 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; }