summaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'video.c')
-rw-r--r--video.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/video.c b/video.c
index c89ebbe..3df1532 100644
--- a/video.c
+++ b/video.c
@@ -86,8 +86,13 @@ static void Ge_Finish_Callback(int id, void *arg)
#define get_screen_pitch() \
screen_pitch \
-#else
+#elif defined(__LIBRETRO__)
+u16 gba_screen_pixels[GBA_SCREEN_PITCH * GBA_SCREEN_HEIGHT];
+
+#define get_screen_pixels() gba_screen_pixels
+#define get_screen_pitch() GBA_SCREEN_PITCH
+#else
SDL_Surface *screen;
const u32 video_scale = 1;
@@ -96,6 +101,7 @@ const u32 video_scale = 1;
#define get_screen_pitch() \
(screen->pitch / 2) \
+#endif
#endif
@@ -3303,7 +3309,7 @@ void flip_screen()
}
}
-#else
+#elif !defined(__LIBRETRO__)
#define integer_scale_copy_2() \
current_scanline_ptr[x2] = current_pixel; \
@@ -3476,7 +3482,7 @@ void init_video()
GE_CMD(NOP, 0);
}
-#else
+#elif !defined(__LIBRETRO__)
void init_video()
{
@@ -3593,7 +3599,7 @@ void clear_screen(u16 color)
sceGuSync(0, 0); */
}
-#else
+#elif !defined(__LIBRETRO__)
void video_resolution_large()
{