diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2005-10-10 16:46:51 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2005-10-10 16:46:51 +0000 |
| commit | 625ef752fb1ab6d984818b70eff14173c8623903 (patch) | |
| tree | e67a0d19c3f6363e5b281bf8c262f9172b8df761 /apps/plugins/lib | |
| parent | 891daf30b5dc25a184629238290b047db4fc382d (diff) | |
| download | rockbox-625ef752fb1ab6d984818b70eff14173c8623903.zip rockbox-625ef752fb1ab6d984818b70eff14173c8623903.tar.gz rockbox-625ef752fb1ab6d984818b70eff14173c8623903.tar.bz2 rockbox-625ef752fb1ab6d984818b70eff14173c8623903.tar.xz | |
Fixed some misleading comments.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7608 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib')
| -rw-r--r-- | apps/plugins/lib/gray_draw.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/plugins/lib/gray_draw.c b/apps/plugins/lib/gray_draw.c index d9b9a36..9ece730 100644 --- a/apps/plugins/lib/gray_draw.c +++ b/apps/plugins/lib/gray_draw.c @@ -578,8 +578,7 @@ void gray_ub_clear_display(void) /* Write a pixel block, defined by their brightnesses in a greymap. Address is the byte in the first bitplane, src is the greymap start address, stride is the increment for the greymap to get to the next pixel, mask - determines which pixels of the destination block are changed. For "0" bits, - the src address is not incremented! */ + determines which pixels of the destination block are changed. */ static void _writearray(unsigned char *address, const unsigned char *src, int stride, unsigned mask) { @@ -757,11 +756,11 @@ static void _writearray(unsigned char *address, const unsigned char *src, /* precalculate the bit patterns with random shifts for all 8 pixels and put them on an extra "stack" */ asm volatile ( - "moveq.l #8,%%d3 \n" /* loop count in d3: 4 pixels */ + "moveq.l #8,%%d3 \n" /* loop count in d3: 8 pixels */ ".wa_loop: \n" /** load pattern for pixel **/ "clr.l %%d2 \n" /* pattern for skipped pixel must be 0 */ - "lsr.l #1,%[mask] \n" /* shift out 2 lsbs of mask */ + "lsr.l #1,%[mask] \n" /* shift out lsb of mask */ "bcc.b .wa_skip \n" /* skip this pixel */ "clr.l %%d0 \n" |