From 10038228f91f79b6f1c8877efb8a8cd505ac6eef Mon Sep 17 00:00:00 2001 From: Ivan Epifanov Date: Sat, 9 Jan 2021 23:33:14 +0300 Subject: [PATCH] Properly cleanup framebuffer --- src/video/vita/SDL_vitaframebuffer.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/video/vita/SDL_vitaframebuffer.c b/src/video/vita/SDL_vitaframebuffer.c index 26f04961d..0a576faf6 100644 --- a/src/video/vita/SDL_vitaframebuffer.c +++ b/src/video/vita/SDL_vitaframebuffer.c @@ -75,12 +75,7 @@ int VITA_CreateWindowFramebuffer(_THIS, SDL_Window * window, Uint32 * format, vo ); // memset the buffer to black - for (int y = 0; y < SCREEN_H; y++) { - unsigned int *row = (unsigned int *)data->buffer + y * SCREEN_W; - for (int x = 0; x < SCREEN_W; x++) { - row[x] = 0x000000FF; - } - } + SDL_memset(data->buffer, 0x0, SCREEN_W*SCREEN_H*4); SDL_memset(&framebuf, 0x00, sizeof(SceDisplayFrameBuf)); framebuf.size = sizeof(SceDisplayFrameBuf);