summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-04-27 01:11:32 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-04-27 01:11:32 +0000
commitdc6f94f04608240d533adc9fc8533df03e5dd1da (patch)
treeff19e02cc359f3e6ff20a27e3df476eb07c28d29 /apps/settings.c
parentfddbee374961534c57cdc828798278cb0e2785dc (diff)
downloadrockbox-dc6f94f04608240d533adc9fc8533df03e5dd1da.tar.gz
rockbox-dc6f94f04608240d533adc9fc8533df03e5dd1da.zip
Removed pointers to language strings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3621 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 498d18de3c..5280b1d667 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -1670,25 +1670,25 @@ bool set_time(char* string, int timedate[])
1670 unsigned int width, height; 1670 unsigned int width, height;
1671 unsigned int separator_width, weekday_width; 1671 unsigned int separator_width, weekday_width;
1672 unsigned int line_height, prev_line_height; 1672 unsigned int line_height, prev_line_height;
1673 char *dayname[] = {str(LANG_WEEKDAY_SUNDAY), 1673 int dayname[] = {LANG_WEEKDAY_SUNDAY,
1674 str(LANG_WEEKDAY_MONDAY), 1674 LANG_WEEKDAY_MONDAY,
1675 str(LANG_WEEKDAY_TUESDAY), 1675 LANG_WEEKDAY_TUESDAY,
1676 str(LANG_WEEKDAY_WEDNESDAY), 1676 LANG_WEEKDAY_WEDNESDAY,
1677 str(LANG_WEEKDAY_THURSDAY), 1677 LANG_WEEKDAY_THURSDAY,
1678 str(LANG_WEEKDAY_FRIDAY), 1678 LANG_WEEKDAY_FRIDAY,
1679 str(LANG_WEEKDAY_SATURDAY)}; 1679 LANG_WEEKDAY_SATURDAY};
1680 char *monthname[] = {str(LANG_MONTH_JANUARY), 1680 int monthname[] = {LANG_MONTH_JANUARY,
1681 str(LANG_MONTH_FEBRUARY), 1681 LANG_MONTH_FEBRUARY,
1682 str(LANG_MONTH_MARCH), 1682 LANG_MONTH_MARCH,
1683 str(LANG_MONTH_APRIL), 1683 LANG_MONTH_APRIL,
1684 str(LANG_MONTH_MAY), 1684 LANG_MONTH_MAY,
1685 str(LANG_MONTH_JUNE), 1685 LANG_MONTH_JUNE,
1686 str(LANG_MONTH_JULY), 1686 LANG_MONTH_JULY,
1687 str(LANG_MONTH_AUGUST), 1687 LANG_MONTH_AUGUST,
1688 str(LANG_MONTH_SEPTEMBER), 1688 LANG_MONTH_SEPTEMBER,
1689 str(LANG_MONTH_OCTOBER), 1689 LANG_MONTH_OCTOBER,
1690 str(LANG_MONTH_NOVEMBER), 1690 LANG_MONTH_NOVEMBER,
1691 str(LANG_MONTH_DECEMBER)}; 1691 LANG_MONTH_DECEMBER};
1692 char cursor[][3] = {{ 0, 8, 12}, {18, 8, 12}, {36, 8, 12}, 1692 char cursor[][3] = {{ 0, 8, 12}, {18, 8, 12}, {36, 8, 12},
1693 {24, 16, 24}, {54, 16, 18}, {78, 16, 12}}; 1693 {24, 16, 24}, {54, 16, 18}, {78, 16, 12}};
1694 char daysinmonth[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; 1694 char daysinmonth[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
@@ -1763,16 +1763,16 @@ bool set_time(char* string, int timedate[])
1763 lcd_getstringsize(buffer, &width, &prev_line_height); 1763 lcd_getstringsize(buffer, &width, &prev_line_height);
1764 1764
1765 snprintf(buffer, sizeof(buffer), "%s 20%02d %s %02d ", 1765 snprintf(buffer, sizeof(buffer), "%s 20%02d %s %02d ",
1766 dayname[timedate[6]], timedate[3], monthname[timedate[4] - 1], 1766 str(dayname[timedate[6]]), timedate[3],
1767 timedate[5]); 1767 str(monthname[timedate[4] - 1]), timedate[5]);
1768 lcd_puts(0, 2, buffer); 1768 lcd_puts(0, 2, buffer);
1769 1769
1770 /* recalculate the positions and offsets */ 1770 /* recalculate the positions and offsets */
1771 lcd_getstringsize(buffer, &width, &line_height); 1771 lcd_getstringsize(buffer, &width, &line_height);
1772 1772
1773 /* store these 2 to prevent _repeated_ strlen calls */ 1773 /* store these 2 to prevent _repeated_ strlen calls */
1774 monthname_len = strlen(monthname[timedate[4] - 1]); 1774 monthname_len = strlen(str(monthname[timedate[4] - 1]));
1775 dayname_len = strlen(dayname[timedate[6]]); 1775 dayname_len = strlen(str(dayname[timedate[6]]));
1776 1776
1777 /* weekday */ 1777 /* weekday */
1778 strncpy(reffub, buffer, dayname_len); 1778 strncpy(reffub, buffer, dayname_len);