From 1cd7568f1fece1025c27be132b0e15fa218fc9ba Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 11 Dec 2017 13:26:52 +0100 Subject: [PATCH] (gx_gfx) Go through intfstream --- gfx/drivers/gx_gfx.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gfx/drivers/gx_gfx.c b/gfx/drivers/gx_gfx.c index ef676d6312..e826b143dd 100644 --- a/gfx/drivers/gx_gfx.c +++ b/gfx/drivers/gx_gfx.c @@ -22,7 +22,7 @@ #include #include -#include +#include #ifdef HAVE_CONFIG_H #include "../../config.h" @@ -720,14 +720,14 @@ static void gx_efb_screenshot(void) { int x, y; uint8_t tga_header[] = {0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x02, 0xE0, 0x01, 0x18, 0x00}; - RFILE *out = filestream_open("/screenshot.tga", + intfstream_t *out = intfstream_open("/screenshot.tga", RETRO_VFS_FILE_ACCESS_WRITE, RETRO_VFS_FILE_ACCESS_HINT_NONE); if (!out) return; - filestream_write(out, tga_header, sizeof(tga_header)); + intfstream_write(out, tga_header, sizeof(tga_header)); for (y = 479; y >= 0; --y) { @@ -742,10 +742,10 @@ static void gx_efb_screenshot(void) line[i++] = color.g; line[i++] = color.r; } - filestream_write(out, line, sizeof(line)); + intfstream_write(out, line, sizeof(line)); } - filestream_close(out); + intfstream_close(out); } #endif