mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-04 22:47:44 -04:00
new 32x renderers, auto fskip change, massive refactoring
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@855 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
2239662e54
commit
662e622b59
22 changed files with 300 additions and 207 deletions
17
win32/plat.c
17
win32/plat.c
|
@ -13,6 +13,8 @@
|
|||
static unsigned short screen_buff[320 * 240];
|
||||
static unsigned char PicoDraw2FB_[(8+320) * (8+240+8)];
|
||||
unsigned char *PicoDraw2FB = PicoDraw2FB_;
|
||||
const char **renderer_names = NULL;
|
||||
const char **renderer_names32x = NULL;
|
||||
|
||||
char cpu_clk_name[] = "unused";
|
||||
|
||||
|
@ -68,17 +70,10 @@ void pemu_validate_config(void)
|
|||
{
|
||||
}
|
||||
|
||||
static int EmuScanBegin16(unsigned int num)
|
||||
{
|
||||
DrawLineDest = (unsigned short *) g_screen_ptr + g_screen_width * num;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void pemu_loop_prep(void)
|
||||
{
|
||||
PicoDrawSetColorFormat(1);
|
||||
PicoScanBegin = EmuScanBegin16;
|
||||
PicoDrawSetOutFormat(PDF_RGB555, 1);
|
||||
PicoDrawSetOutBuf(g_screen_ptr, g_screen_width * 2);
|
||||
pemu_sound_start();
|
||||
}
|
||||
|
||||
|
@ -105,10 +100,10 @@ void plat_video_wait_vsync(void)
|
|||
{
|
||||
}
|
||||
|
||||
void plat_video_toggle_renderer(int is_next, int force_16bpp, int is_menu)
|
||||
void plat_video_toggle_renderer(int change, int is_menu)
|
||||
{
|
||||
// this will auto-select SMS/32X renderers
|
||||
PicoDrawSetColorFormat(1);
|
||||
PicoDrawSetOutFormat(PDF_RGB555, 1);
|
||||
}
|
||||
|
||||
void emu_video_mode_change(int start_line, int line_count, int is_32cols)
|
||||
|
|
|
@ -13,9 +13,6 @@
|
|||
#define SCREEN_WIDTH 320
|
||||
#define SCREEN_HEIGHT 240
|
||||
|
||||
// draw.c
|
||||
#define OVERRIDE_HIGHCOL 0
|
||||
|
||||
// draw2.c
|
||||
#define START_ROW 0 // which row of tiles to start rendering at?
|
||||
#define END_ROW 28 // ..end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue