+#elif defined(PND_BUILD) || defined(RPI_BUILD)
+
+void video_resolution_large()
+{
+#if defined (RPI_BUILD)
+ resolution_width = 480;
+#else
+ resolution_width = 400;
+#endif
+ resolution_height = 272;
+
+ fb_set_mode(resolution_width, resolution_height, 1, 15, screen_filter, screen_filter2);
+ flip_screen();
+ clear_screen(0);
+}
+
+void video_resolution_small()
+{
+ resolution_width = 240;
+ resolution_height = 160;
+
+ fb_set_mode(resolution_width, resolution_height, 3, screen_scale, screen_filter, screen_filter2);
+ flip_screen();
+ clear_screen(0);
+}
+
+void set_gba_resolution(video_scale_type scale)
+{
+ screen_scale = scale;
+}
+
+void clear_screen(u16 color)
+{
+ u32 col = ((u32)color << 16) | color;
+ u32 *p = (u32 *)get_screen_pixels();
+ int c = resolution_width * resolution_height / 2;
+ while (c-- > 0)
+ *p++ = col;
+}
+