pandora: use hw scaler (resolves 32x+sms), frontend refactoring

git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@885 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2010-09-06 13:08:23 +00:00
parent b6b7d1b1c5
commit c66f49e61a
18 changed files with 958 additions and 595 deletions

View file

@ -179,6 +179,7 @@ void plat_video_menu_enter(int is_rom_loaded)
void plat_video_menu_begin(void)
{
memcpy32(g_screen_ptr, g_menubg_ptr, g_screen_width * g_screen_height * 2 / 4);
g_menubg_ptr = g_screen_ptr;
}
void plat_video_menu_end(void)

View file

@ -252,8 +252,8 @@ static void xlib_init(void)
static void realloc_screen(void)
{
int size = scr_w * scr_h * 2;
g_screen_width = scr_w;
g_screen_height = scr_h;
g_menuscreen_w = scr_w;
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);
@ -322,6 +322,8 @@ void plat_init(void)
ret = vout_fbdev_init(&w, &h);
if (ret != 0)
exit(1);
g_menuscreen_w = w;
g_menuscreen_h = h;
g_screen_width = w;
g_menubg_ptr = realloc(g_menubg_ptr, w * g_screen_height * 2);
PicoDraw2FB = g_menubg_ptr;

View file

@ -12,6 +12,8 @@
#define SCREEN_SIZE_FIXED 0
#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
#define MSCREEN_WIDTH SCREEN_WIDTH
#define MSCREEN_HEIGHT SCREEN_HEIGHT
// draw2.c
#define START_ROW 0 // which row of tiles to start rendering at?