libpicofe/pandora/pandora.c
notaz b2c5ee473d 1.70beta0 pandora release
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@847 be3aeb3a-fb24-0410-a615-afba39da0efa
2009-12-22 11:06:52 +00:00

53 lines
813 B
C

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "../linux/sndout_oss.h"
#include "../linux/fbdev.h"
#include "../linux/x11h.h"
#include "../common/emu.h"
void plat_early_init(void)
{
}
void plat_init(void)
{
int ret, w, h;
x11h_init();
ret = vout_fbdev_init(&w, &h);
if (ret != 0) {
fprintf(stderr, "couldn't init framebuffer\n");
exit(1);
}
if (w != g_screen_width || h != g_screen_height) {
fprintf(stderr, "%dx%d not supported\n", w, h);
vout_fbdev_finish();
exit(1);
}
// snd
sndout_oss_init();
}
void plat_finish(void)
{
sndout_oss_exit();
vout_fbdev_finish();
printf("all done");
}
/* lprintf */
void lprintf(const char *fmt, ...)
{
va_list vl;
va_start(vl, fmt);
vprintf(fmt, vl);
va_end(vl);
}