diff options
author | Markus Braun <markus.braun@krawel.de> | 2002-09-21 14:21:31 +0000 |
---|---|---|
committer | Markus Braun <markus.braun@krawel.de> | 2002-09-21 14:21:31 +0000 |
commit | ba93850ee30b3a2d8227735690546c7f8843f621 (patch) | |
tree | ae8c84889f180c0cbd404d631a58fe368d699c12 /apps/settings.c | |
parent | 0ba51c5e56980eff9464a5f5f2faa417a3d5d4d8 (diff) | |
download | rockbox-ba93850ee30b3a2d8227735690546c7f8843f621.tar.gz rockbox-ba93850ee30b3a2d8227735690546c7f8843f621.zip |
Fixed time/date setting for new font system.
Enbled time/date setting in simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2363 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/settings.c b/apps/settings.c index 5d1ffef4a4..5b2991a8ef 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -785,7 +785,7 @@ void set_option(char* string, int* variable, char* options[], | |||
785 | lcd_stop_scroll(); | 785 | lcd_stop_scroll(); |
786 | } | 786 | } |
787 | 787 | ||
788 | #ifdef HAVE_RTC | 788 | #ifdef HAVE_LCD_BITMAP |
789 | #define INDEX_X 0 | 789 | #define INDEX_X 0 |
790 | #define INDEX_Y 1 | 790 | #define INDEX_Y 1 |
791 | #define INDEX_WIDTH 2 | 791 | #define INDEX_WIDTH 2 |
@@ -857,14 +857,14 @@ void set_time(char* string, int timedate[]) | |||
857 | reffub[2] = '\0'; | 857 | reffub[2] = '\0'; |
858 | lcd_getstringsize(reffub, FONT_UI, &width, &height); | 858 | lcd_getstringsize(reffub, FONT_UI, &width, &height); |
859 | cursor[0][INDEX_X] = 0; | 859 | cursor[0][INDEX_X] = 0; |
860 | cursor[0][INDEX_Y] = 1 + prev_line_height + 1; | 860 | cursor[0][INDEX_Y] = prev_line_height; |
861 | cursor[0][INDEX_WIDTH] = width; | 861 | cursor[0][INDEX_WIDTH] = width; |
862 | 862 | ||
863 | strncpy(reffub, buffer + 3, 2); | 863 | strncpy(reffub, buffer + 3, 2); |
864 | reffub[2] = '\0'; | 864 | reffub[2] = '\0'; |
865 | lcd_getstringsize(reffub, FONT_UI, &width, &height); | 865 | lcd_getstringsize(reffub, FONT_UI, &width, &height); |
866 | cursor[1][INDEX_X] = cursor[0][INDEX_WIDTH] + separator_width; | 866 | cursor[1][INDEX_X] = cursor[0][INDEX_WIDTH] + separator_width; |
867 | cursor[1][INDEX_Y] = 1 + prev_line_height + 1; | 867 | cursor[1][INDEX_Y] = prev_line_height; |
868 | cursor[1][INDEX_WIDTH] = width; | 868 | cursor[1][INDEX_WIDTH] = width; |
869 | 869 | ||
870 | strncpy(reffub, buffer + 6, 2); | 870 | strncpy(reffub, buffer + 6, 2); |
@@ -872,7 +872,7 @@ void set_time(char* string, int timedate[]) | |||
872 | lcd_getstringsize(reffub, FONT_UI, &width, &height); | 872 | lcd_getstringsize(reffub, FONT_UI, &width, &height); |
873 | cursor[2][INDEX_X] = cursor[0][INDEX_WIDTH] + separator_width + | 873 | cursor[2][INDEX_X] = cursor[0][INDEX_WIDTH] + separator_width + |
874 | cursor[1][INDEX_WIDTH] + separator_width; | 874 | cursor[1][INDEX_WIDTH] + separator_width; |
875 | cursor[2][INDEX_Y] = 1 + prev_line_height + 1; | 875 | cursor[2][INDEX_Y] = prev_line_height; |
876 | cursor[2][INDEX_WIDTH] = width; | 876 | cursor[2][INDEX_WIDTH] = width; |
877 | 877 | ||
878 | lcd_getstringsize(buffer, FONT_UI, &width, &prev_line_height); | 878 | lcd_getstringsize(buffer, FONT_UI, &width, &prev_line_height); |
@@ -895,7 +895,7 @@ void set_time(char* string, int timedate[]) | |||
895 | reffub[4] = '\0'; | 895 | reffub[4] = '\0'; |
896 | lcd_getstringsize(reffub, FONT_UI, &width, &height); | 896 | lcd_getstringsize(reffub, FONT_UI, &width, &height); |
897 | cursor[3][INDEX_X] = weekday_width + separator_width; | 897 | cursor[3][INDEX_X] = weekday_width + separator_width; |
898 | cursor[3][INDEX_Y] = cursor[0][INDEX_Y] + prev_line_height + 1; | 898 | cursor[3][INDEX_Y] = cursor[0][INDEX_Y] + prev_line_height; |
899 | cursor[3][INDEX_WIDTH] = width; | 899 | cursor[3][INDEX_WIDTH] = width; |
900 | 900 | ||
901 | strncpy(reffub, buffer + 9, 3); | 901 | strncpy(reffub, buffer + 9, 3); |
@@ -903,7 +903,7 @@ void set_time(char* string, int timedate[]) | |||
903 | lcd_getstringsize(reffub, FONT_UI, &width, &height); | 903 | lcd_getstringsize(reffub, FONT_UI, &width, &height); |
904 | cursor[4][INDEX_X] = weekday_width + separator_width + | 904 | cursor[4][INDEX_X] = weekday_width + separator_width + |
905 | cursor[3][INDEX_WIDTH] + separator_width; | 905 | cursor[3][INDEX_WIDTH] + separator_width; |
906 | cursor[4][INDEX_Y] = cursor[0][INDEX_Y] + prev_line_height + 1; | 906 | cursor[4][INDEX_Y] = cursor[0][INDEX_Y] + prev_line_height; |
907 | cursor[4][INDEX_WIDTH] = width; | 907 | cursor[4][INDEX_WIDTH] = width; |
908 | 908 | ||
909 | strncpy(reffub, buffer + 13, 2); | 909 | strncpy(reffub, buffer + 13, 2); |
@@ -912,7 +912,7 @@ void set_time(char* string, int timedate[]) | |||
912 | cursor[5][INDEX_X] = weekday_width + separator_width + | 912 | cursor[5][INDEX_X] = weekday_width + separator_width + |
913 | cursor[3][INDEX_WIDTH] + separator_width + | 913 | cursor[3][INDEX_WIDTH] + separator_width + |
914 | cursor[4][INDEX_WIDTH] + separator_width; | 914 | cursor[4][INDEX_WIDTH] + separator_width; |
915 | cursor[5][INDEX_Y] = cursor[0][INDEX_Y] + prev_line_height + 1; | 915 | cursor[5][INDEX_Y] = cursor[0][INDEX_Y] + prev_line_height; |
916 | cursor[5][INDEX_WIDTH] = width; | 916 | cursor[5][INDEX_WIDTH] = width; |
917 | 917 | ||
918 | lcd_invertrect(cursor[cursorpos][INDEX_X], | 918 | lcd_invertrect(cursor[cursorpos][INDEX_X], |