diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-06-30 13:31:14 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-06-30 13:31:14 +0000 |
commit | a8dab4c08af0e1d251ff633a2859c8b9b24efc7c (patch) | |
tree | be8b66535d905e50319788f988f94ab008a48ba3 /apps/debug_menu.c | |
parent | 058302a4807e14d564195de9825e3aa970ea68f9 (diff) | |
download | rockbox-a8dab4c08af0e1d251ff633a2859c8b9b24efc7c.tar.gz rockbox-a8dab4c08af0e1d251ff633a2859c8b9b24efc7c.zip |
New screen dump feature for recorders
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4817 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 02b86feefc..0b4be9d72d 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -1612,6 +1612,18 @@ static bool dbg_sound(void) | |||
1612 | return false; | 1612 | return false; |
1613 | } | 1613 | } |
1614 | 1614 | ||
1615 | #ifdef HAVE_LCD_BITMAP | ||
1616 | extern bool do_screendump_instead_of_usb; | ||
1617 | |||
1618 | bool dbg_screendump(void) | ||
1619 | { | ||
1620 | do_screendump_instead_of_usb = !do_screendump_instead_of_usb; | ||
1621 | splash(HZ, true, "Screendump %s", | ||
1622 | do_screendump_instead_of_usb?"enabled":"disabled"); | ||
1623 | return false; | ||
1624 | } | ||
1625 | #endif | ||
1626 | |||
1615 | bool debug_menu(void) | 1627 | bool debug_menu(void) |
1616 | { | 1628 | { |
1617 | int m; | 1629 | int m; |
@@ -1635,6 +1647,7 @@ bool debug_menu(void) | |||
1635 | #endif | 1647 | #endif |
1636 | #ifdef HAVE_LCD_BITMAP | 1648 | #ifdef HAVE_LCD_BITMAP |
1637 | { "View battery", -1, view_battery }, | 1649 | { "View battery", -1, view_battery }, |
1650 | { "Screendump", -1, dbg_screendump }, | ||
1638 | #endif | 1651 | #endif |
1639 | { "View HW info", -1, dbg_hw_info }, | 1652 | { "View HW info", -1, dbg_hw_info }, |
1640 | { "View partitions", -1, dbg_partitions }, | 1653 | { "View partitions", -1, dbg_partitions }, |