X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=linux%2Fgp2x.c;h=a58b45166b0893ad4386a885db748f89116ba6b0;hb=d572cbad9886a04f8c51edb825dc6aaec9b02e23;hp=a22e079f1b4ca740405d78299e5cea8b7393ce8f;hpb=9c0d458840d6eb0216232eabd3ca29b57f638c92;p=libpicofe.git diff --git a/linux/gp2x.c b/linux/gp2x.c index a22e079..a58b451 100644 --- a/linux/gp2x.c +++ b/linux/gp2x.c @@ -1,4 +1,4 @@ -/* faking/emulating gp2x.c by using gtk */ +/* faking/emulating gp2x by using gtk */ #include #include #include @@ -27,7 +27,6 @@ static const char *verstring = "PicoDrive " VERSION; static int scr_changed = 0, scr_w = SCREEN_WIDTH, scr_h = SCREEN_HEIGHT; // dummies -char *ext_menu = 0, *ext_state = 0; int mix_32_to_16l_level; /* gtk */ @@ -211,7 +210,7 @@ static void realloc_screen(void) scr_changed = 0; } -void gp2x_init(void) +void plat_init(void) { printf("entering init()\n"); fflush(stdout); @@ -226,7 +225,7 @@ void gp2x_init(void) printf("exitting init()\n"); fflush(stdout); } -void gp2x_deinit(void) +void plat_finish(void) { free(g_screen_ptr); sndout_oss_exit(); @@ -309,36 +308,15 @@ void gp2x_video_setpalette(int *pal, int len) memcpy(current_pal, pal, len*4); } -void gp2x_video_flush_cache(void) -{ -} - void gp2x_video_RGB_setscaling(int v_offs, int W, int H) { } -void gp2x_memcpy_buffers(int buffers, void *data, int offset, int len) -{ - if ((char *)g_screen_ptr + offset != data) - memcpy((char *)g_screen_ptr + offset, data, len); -} - -void gp2x_memcpy_all_buffers(void *data, int offset, int len) -{ - memcpy((char *)g_screen_ptr + offset, data, len); -} - - void gp2x_memset_all_buffers(int offset, int byte, int len) { memset((char *)g_screen_ptr + offset, byte, len); } -void gp2x_pd_clone_buffer2(void) -{ - memset(g_screen_ptr, 0, g_screen_width * g_screen_height * 2); -} - /* joy */ int gp2x_touchpad_read(int *x, int *y) { @@ -347,11 +325,11 @@ int gp2x_touchpad_read(int *x, int *y) /* 940 */ int crashed_940 = 0; -void Pause940(int yes) +void pause940(int yes) { } -void Reset940(int yes, int bank) +void reset940(int yes, int bank) { }