X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Flibretro.c;h=15a83bad0640d6b0fb61927e017afa0eb4372130;hb=9c9cda8c39bd2a6b99b8420a3034c454bc713954;hp=a6bc50f09b5910862cc282b36089f91d3501fece;hpb=8c8b72847259871bc50cd796383d9eeb83970bb1;p=picodrive.git diff --git a/platform/libretro.c b/platform/libretro.c index a6bc50f..15a83ba 100644 --- a/platform/libretro.c +++ b/platform/libretro.c @@ -40,10 +40,6 @@ static int vout_width, vout_height; static short __attribute__((aligned(4))) sndBuffer[2*44100/50]; -// FIXME: these 2 shouldn't be here -static unsigned char PicoDraw2FB_[(8+320) * (8+240+8)]; -unsigned char *PicoDraw2FB = PicoDraw2FB_; - static void snd_write(int len); #ifdef _WIN32 @@ -151,7 +147,6 @@ void emu_video_mode_change(int start_line, int line_count, int is_32cols) void emu_32x_startup(void) { - PicoDrawSetOutFormat(PDF_RGB555, 1); } #ifndef ANDROID @@ -609,15 +604,12 @@ void retro_init(void) PicoAutoRgnOrder = 0x184; // US, EU, JP PicoCDBuffers = 0; - p32x_msh2_multiplier = MSH2_MULTI_DEFAULT; - p32x_ssh2_multiplier = SSH2_MULTI_DEFAULT; - vout_width = 320; vout_height = 240; vout_buf = malloc(VOUT_MAX_WIDTH * VOUT_MAX_HEIGHT * 2); PicoInit(); - PicoDrawSetOutFormat(PDF_RGB555, 1); + PicoDrawSetOutFormat(PDF_RGB555, 0); PicoDrawSetOutBuf(vout_buf, vout_width * 2); //PicoMessage = plat_status_msg_busy_next;