#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <stdarg.h>
#include "../common/emu.h"
#include "../common/menu.h"
+#include "../common/plat.h"
#include "sndout_oss.h"
#include "version.h"
static void realloc_screen(void)
{
int size = scr_w * scr_h * 2;
- g_menuscreen_w = scr_w;
- g_menuscreen_h = scr_h;
+ g_screen_width = g_menuscreen_w = scr_w;
+ g_screen_height = g_menuscreen_h = scr_h;
g_screen_ptr = realloc(g_screen_ptr, size);
g_menubg_ptr = realloc(g_menubg_ptr, size);
memset(g_screen_ptr, 0, size);
if (scr_changed) {
realloc_screen();
ximage_realloc(xlib_display, DefaultVisual(xlib_display, 0));
+
+ // propagate new ponters to renderers
+ plat_video_toggle_renderer(0, 0);
}
}
ret = vout_fbdev_init(&w, &h);
if (ret != 0)
exit(1);
- g_menuscreen_w = w;
- g_menuscreen_h = h;
- g_screen_width = w;
+ g_screen_width = g_menuscreen_w = w;
+ g_screen_height = g_menuscreen_h = h;
g_menubg_ptr = realloc(g_menubg_ptr, w * g_screen_height * 2);
PicoDraw2FB = g_menubg_ptr;
#else
}
/* misc */
-int mp3_get_bitrate(FILE *f, int size)
+int mp3_get_bitrate(void *f, int size)
{
return 128;
}
-void mp3_start_play(FILE *f, int pos)
+void mp3_start_play(void *f, int pos)
{
}
{
}
-/* lprintf */
-void lprintf(const char *fmt, ...)
-{
- va_list vl;
-
- va_start(vl, fmt);
- vprintf(fmt, vl);
- va_end(vl);
-}
-