X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Flinux%2Fgp2x.c;h=4da98a5383e37887be1c4314644ba5770a3b3613;hb=2b2b46b05d5fbabb59c1392fbfdf8c715ef02a83;hp=17b294a978a2df853440f00476e32282e6fb08c7;hpb=c3a8237644a7cef891455d57a12ed2a589c6151e;p=picodrive.git diff --git a/platform/linux/gp2x.c b/platform/linux/gp2x.c index 17b294a..4da98a5 100644 --- a/platform/linux/gp2x.c +++ b/platform/linux/gp2x.c @@ -196,8 +196,7 @@ static void *xlib_threadf(void *targ) XSetWMName(display, win, &windowName); XSelectInput(display, win, ExposureMask | - KeyPressMask | - ButtonPressMask | + KeyPressMask | KeyReleaseMask | StructureNotifyMask); XMapWindow(display, win); @@ -389,7 +388,9 @@ void plat_video_menu_end(void) void plat_validate_config(void) { + extern int PicoOpt; // PicoOpt &= ~POPT_EXT_FM; + PicoOpt &= ~(1<<17); // POPT_EN_SVP_DRC } void plat_early_init(void) @@ -426,6 +427,7 @@ void *gp2x_video_setpalette = gp2x_video_setpalette_; void *gp2x_video_RGB_setscaling = do_nothing; void *gp2x_video_wait_vsync = do_nothing; void *gp2x_set_cpuclk = do_nothing; +void *gp2x_read_battery = do_nothing; void *set_lcd_custom_rate = do_nothing; void *unset_lcd_custom_rate = do_nothing; void *set_lcd_gamma = do_nothing;