Commit graph

17 commits

Author SHA1 Message Date
Thomas Martitz
3ad3bec0ad Use strlcpy instead of a memset&strcpy combo. Guarantees \0-terminaltion and gives a 1-3% speed up.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23284 a1c6a512-1295-4272-9138-f99709370657
2009-10-20 00:09:16 +00:00
Thomas Martitz
137d27af42 Fix a scrolling bug with centered drawing and too long lines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23282 a1c6a512-1295-4272-9138-f99709370657
2009-10-19 22:49:41 +00:00
Nils Wallménius
f34a841b0c Revise r23225 a bit, removing the debug_printf function and implementing more generic lcd_(remote)_putsf function(s) instead and use those in more places
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23233 a1c6a512-1295-4272-9138-f99709370657
2009-10-17 18:02:48 +00:00
Tomer Shalev
736ea79e63 Fix FS#10670 - The first letter of a scrolling line starts to appear at the end
of the line

Thanks to Teruaki Kawashima (teru) for providing this solution


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23132 a1c6a512-1295-4272-9138-f99709370657
2009-10-12 16:31:44 +00:00
Tomer Shalev
461903d80e LCD scrolling - reduce one 'if' nesting level
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23125 a1c6a512-1295-4272-9138-f99709370657
2009-10-12 04:29:47 +00:00
Tomer Shalev
aee6901953 LCD scrolling - fix a typo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23124 a1c6a512-1295-4272-9138-f99709370657
2009-10-12 04:28:56 +00:00
Tomer Shalev
74d3671af2 Revert r23021, since it broke non-RTL scrolling. RTL scrolling still needs fixing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23118 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 20:49:27 +00:00
Tomer Shalev
d5b076b64a RTL: Cosmetic changes, no functional change - Rename constants
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23117 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 20:15:22 +00:00
Thomas Martitz
a79dc87761 Add a center flag, next to the rtl flag, for viewports. That results in any text being drawn centered. It overrides the RTL flag if set.
Simplify splashes and time menu by using it.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23105 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 12:21:27 +00:00
Mohamed Tarek
7220cbb890 Fix a bug in a bidirectional text scrolling; s->offset doesn't need to be set when backward scrolling starts. This fixes bidirectional scrolling in
RTL and for certain file-names in LTR.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23022 a1c6a512-1295-4272-9138-f99709370657
2009-10-09 01:05:40 +00:00
Mohamed Tarek
2282607224 Handle text scrolling in RTL.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23021 a1c6a512-1295-4272-9138-f99709370657
2009-10-09 00:56:37 +00:00
Tomer Shalev
eb4020134e Moved RTL handling in lcd driver deeper, from puts_style_offset() to putsxyofs()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22986 a1c6a512-1295-4272-9138-f99709370657
2009-10-06 16:56:13 +00:00
Tomer Shalev
a092b9ce92 Use macro to test viewport's RTL flag
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22978 a1c6a512-1295-4272-9138-f99709370657
2009-10-06 08:07:30 +00:00
Tomer Shalev
58221fc38d Implement RTL as a viewport's bit-field
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22968 a1c6a512-1295-4272-9138-f99709370657
2009-10-05 20:22:02 +00:00
Tomer Shalev
e7183f95d0 Fix red - bootloaders don't link language support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22949 a1c6a512-1295-4272-9138-f99709370657
2009-10-05 12:19:41 +00:00
Tomer Shalev
6d80565b1b RTL support in menus
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22945 a1c6a512-1295-4272-9138-f99709370657
2009-10-05 11:43:38 +00:00
Andrew Mahone
e04f95eab9 LCD bitmap driver code consolidation from FS#4817:
Move text-drawing code into firmware-drivers/lcd-bitmap-common.c, included by the various driver files.
Add new static function LCDFN(putsxyofs_style) to draw styled text, and use it in both LCDFN(puts_style_offset) and LCDFN(scroll_fn).
Merge lcd_gradient_rect functions, with new function containing simplified code for drawing one line of a multi-line gradient.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22289 a1c6a512-1295-4272-9138-f99709370657
2009-08-13 08:02:29 +00:00