diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2008-06-23 13:20:35 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2008-06-23 13:20:35 +0000 |
commit | bdbdb97f19655a635a2d37f81f9fe1e31f9162b2 (patch) | |
tree | ea5672478b70e550910bc179a7644afa70c0d057 /apps/debug_menu.c | |
parent | c1b8df05e1def3096ff6d2ea55f23b2e72936fce (diff) | |
download | rockbox-bdbdb97f19655a635a2d37f81f9fe1e31f9162b2.tar.gz rockbox-bdbdb97f19655a635a2d37f81f9fe1e31f9162b2.zip |
FS#9051 - remove LCD margins... use viewports if you need them...
NOTE to WPS people....
%m has been removed, but (i think) because of the other %m tags it wont fail if you try loading a wps with %m|..|, it will just be ignored.
Also note that if the statusbar is enabled the default viewport is 8 pixels shorter than when its not, i.e (0,0) is really (0,8) if the statusbar is shown... I dont think this will be a major issue because almost no WPS show the bar and use bitmaps... text only WPS shouldnt be affected.
Please report problem screens in http://forums.rockbox.org/index.php?topic=17358.0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17763 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 479ca34995..ab3075afc1 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -226,7 +226,6 @@ static bool dbg_audio_thread(void) | |||
226 | char buf[32]; | 226 | char buf[32]; |
227 | struct audio_debug d; | 227 | struct audio_debug d; |
228 | 228 | ||
229 | lcd_setmargins(0, 0); | ||
230 | lcd_setfont(FONT_SYSFIXED); | 229 | lcd_setfont(FONT_SYSFIXED); |
231 | 230 | ||
232 | while(1) | 231 | while(1) |
@@ -299,7 +298,6 @@ static bool dbg_buffering_thread(void) | |||
299 | 298 | ||
300 | tick_add_task(dbg_audio_task); | 299 | tick_add_task(dbg_audio_task); |
301 | 300 | ||
302 | lcd_setmargins(0, 0); | ||
303 | lcd_setfont(FONT_SYSFIXED); | 301 | lcd_setfont(FONT_SYSFIXED); |
304 | while(!done) | 302 | while(!done) |
305 | { | 303 | { |
@@ -521,7 +519,6 @@ static bool dbg_hw_info(void) | |||
521 | 519 | ||
522 | system_memory_guard(oldmode); /* re-enable memory guard */ | 520 | system_memory_guard(oldmode); /* re-enable memory guard */ |
523 | 521 | ||
524 | lcd_setmargins(0, 0); | ||
525 | lcd_setfont(FONT_SYSFIXED); | 522 | lcd_setfont(FONT_SYSFIXED); |
526 | lcd_clear_display(); | 523 | lcd_clear_display(); |
527 | 524 | ||
@@ -572,7 +569,6 @@ static bool dbg_hw_info(void) | |||
572 | 569 | ||
573 | system_memory_guard(oldmode); /* re-enable memory guard */ | 570 | system_memory_guard(oldmode); /* re-enable memory guard */ |
574 | 571 | ||
575 | lcd_setmargins(0, 0); | ||
576 | lcd_setfont(FONT_SYSFIXED); | 572 | lcd_setfont(FONT_SYSFIXED); |
577 | lcd_clear_display(); | 573 | lcd_clear_display(); |
578 | 574 | ||
@@ -623,7 +619,6 @@ static bool dbg_hw_info(void) | |||
623 | (PP_VER1 >> 24) & 0xff, (PP_VER1 >> 16) & 0xff, | 619 | (PP_VER1 >> 24) & 0xff, (PP_VER1 >> 16) & 0xff, |
624 | (PP_VER1 >> 8) & 0xff, (PP_VER1) & 0xff, '\0' }; | 620 | (PP_VER1 >> 8) & 0xff, (PP_VER1) & 0xff, '\0' }; |
625 | 621 | ||
626 | lcd_setmargins(0, 0); | ||
627 | lcd_setfont(FONT_SYSFIXED); | 622 | lcd_setfont(FONT_SYSFIXED); |
628 | lcd_clear_display(); | 623 | lcd_clear_display(); |
629 | 624 | ||
@@ -660,7 +655,6 @@ static bool dbg_hw_info(void) | |||
660 | (PP_VER1 >> 8) & 0xff, PP_VER1 & 0xff, '\0' }; | 655 | (PP_VER1 >> 8) & 0xff, PP_VER1 & 0xff, '\0' }; |
661 | 656 | ||
662 | 657 | ||
663 | lcd_setmargins(0, 0); | ||
664 | lcd_setfont(FONT_SYSFIXED); | 658 | lcd_setfont(FONT_SYSFIXED); |
665 | lcd_clear_display(); | 659 | lcd_clear_display(); |
666 | 660 | ||
@@ -823,7 +817,6 @@ static bool dbg_spdif(void) | |||
823 | int spdif_source = spdif_get_output_source(&spdif_src_on); | 817 | int spdif_source = spdif_get_output_source(&spdif_src_on); |
824 | spdif_set_output_source(AUDIO_SRC_SPDIF IF_SPDIF_POWER_(, true)); | 818 | spdif_set_output_source(AUDIO_SRC_SPDIF IF_SPDIF_POWER_(, true)); |
825 | 819 | ||
826 | lcd_setmargins(0, 0); | ||
827 | lcd_clear_display(); | 820 | lcd_clear_display(); |
828 | lcd_setfont(FONT_SYSFIXED); | 821 | lcd_setfont(FONT_SYSFIXED); |
829 | 822 | ||
@@ -1033,7 +1026,6 @@ bool dbg_ports(void) | |||
1033 | int adc_battery_voltage, adc_battery_level; | 1026 | int adc_battery_voltage, adc_battery_level; |
1034 | 1027 | ||
1035 | lcd_setfont(FONT_SYSFIXED); | 1028 | lcd_setfont(FONT_SYSFIXED); |
1036 | lcd_setmargins(0, 0); | ||
1037 | lcd_clear_display(); | 1029 | lcd_clear_display(); |
1038 | 1030 | ||
1039 | while(1) | 1031 | while(1) |
@@ -1075,7 +1067,6 @@ bool dbg_ports(void) | |||
1075 | char buf[128]; | 1067 | char buf[128]; |
1076 | int line; | 1068 | int line; |
1077 | 1069 | ||
1078 | lcd_setmargins(0, 0); | ||
1079 | lcd_clear_display(); | 1070 | lcd_clear_display(); |
1080 | lcd_setfont(FONT_SYSFIXED); | 1071 | lcd_setfont(FONT_SYSFIXED); |
1081 | 1072 | ||
@@ -1151,7 +1142,6 @@ bool dbg_ports(void) | |||
1151 | char buf[128]; | 1142 | char buf[128]; |
1152 | int line; | 1143 | int line; |
1153 | 1144 | ||
1154 | lcd_setmargins(0, 0); | ||
1155 | lcd_clear_display(); | 1145 | lcd_clear_display(); |
1156 | lcd_setfont(FONT_SYSFIXED); | 1146 | lcd_setfont(FONT_SYSFIXED); |
1157 | 1147 | ||
@@ -1248,7 +1238,6 @@ bool dbg_ports(void) | |||
1248 | char buf[128]; | 1238 | char buf[128]; |
1249 | int line; | 1239 | int line; |
1250 | 1240 | ||
1251 | lcd_setmargins(0, 0); | ||
1252 | lcd_clear_display(); | 1241 | lcd_clear_display(); |
1253 | lcd_setfont(FONT_SYSFIXED); | 1242 | lcd_setfont(FONT_SYSFIXED); |
1254 | 1243 | ||
@@ -1374,7 +1363,6 @@ static bool dbg_pcf(void) | |||
1374 | int line; | 1363 | int line; |
1375 | 1364 | ||
1376 | #ifdef HAVE_LCD_BITMAP | 1365 | #ifdef HAVE_LCD_BITMAP |
1377 | lcd_setmargins(0, 0); | ||
1378 | lcd_setfont(FONT_SYSFIXED); | 1366 | lcd_setfont(FONT_SYSFIXED); |
1379 | #endif | 1367 | #endif |
1380 | lcd_clear_display(); | 1368 | lcd_clear_display(); |
@@ -1429,7 +1417,6 @@ static bool dbg_cpufreq(void) | |||
1429 | int button; | 1417 | int button; |
1430 | 1418 | ||
1431 | #ifdef HAVE_LCD_BITMAP | 1419 | #ifdef HAVE_LCD_BITMAP |
1432 | lcd_setmargins(0, 0); | ||
1433 | lcd_setfont(FONT_SYSFIXED); | 1420 | lcd_setfont(FONT_SYSFIXED); |
1434 | #endif | 1421 | #endif |
1435 | lcd_clear_display(); | 1422 | lcd_clear_display(); |
@@ -1559,7 +1546,6 @@ static bool view_battery(void) | |||
1559 | unsigned short maxv, minv; | 1546 | unsigned short maxv, minv; |
1560 | char buf[32]; | 1547 | char buf[32]; |
1561 | 1548 | ||
1562 | lcd_setmargins(0, 0); | ||
1563 | lcd_setfont(FONT_SYSFIXED); | 1549 | lcd_setfont(FONT_SYSFIXED); |
1564 | 1550 | ||
1565 | while(1) | 1551 | while(1) |
@@ -2316,7 +2302,6 @@ static bool cpu_boost_log(void) | |||
2316 | int lines = LCD_HEIGHT/SYSFONT_HEIGHT; | 2302 | int lines = LCD_HEIGHT/SYSFONT_HEIGHT; |
2317 | char *str; | 2303 | char *str; |
2318 | bool done; | 2304 | bool done; |
2319 | lcd_setmargins(0, 0); | ||
2320 | lcd_setfont(FONT_SYSFIXED); | 2305 | lcd_setfont(FONT_SYSFIXED); |
2321 | str = cpu_boost_log_getlog_first(); | 2306 | str = cpu_boost_log_getlog_first(); |
2322 | while (i < count) | 2307 | while (i < count) |
@@ -2369,7 +2354,6 @@ static bool dbg_scrollwheel(void) | |||
2369 | char buf[64]; | 2354 | char buf[64]; |
2370 | unsigned int speed; | 2355 | unsigned int speed; |
2371 | 2356 | ||
2372 | lcd_setmargins(0, 0); | ||
2373 | lcd_setfont(FONT_SYSFIXED); | 2357 | lcd_setfont(FONT_SYSFIXED); |
2374 | 2358 | ||
2375 | while (1) | 2359 | while (1) |