mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Add a rockbox kernel thread for simulator specific tasks, and use that for calling the screendump function(s). Fixes screendump in simulators for backlight-less targets (Ondio), and reduces mixing of unrelated functionality a bit (screendump was called from backlight thread, triggered by a sim-only system wide event).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20065 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2c3517d67a
commit
3e67e3b1f0
7 changed files with 103 additions and 15 deletions
|
@ -597,16 +597,6 @@ void backlight_thread(void)
|
|||
break;
|
||||
#endif /* HAVE_REMOTE_LCD/ HAVE_REMOTE_LCD_AS_MAIN */
|
||||
#endif /* !SIMULATOR */
|
||||
#ifdef SIMULATOR
|
||||
/* TODO: find a better way to do it but we need
|
||||
* a kernel thread somewhere to handle this */
|
||||
case SYS_SCREENDUMP:
|
||||
screen_dump();
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
remote_screen_dump();
|
||||
#endif
|
||||
break;
|
||||
#endif
|
||||
case SYS_USB_CONNECTED:
|
||||
/* Tell the USB thread that we are safe */
|
||||
DEBUGF("backlight_thread got SYS_USB_CONNECTED\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue