summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-07-28 14:08:58 +0000
committerJens Arnold <amiconn@rockbox.org>2005-07-28 14:08:58 +0000
commitfeaf62704ed3a3b2eb98f0e49afc1559e0655ba9 (patch)
treeb5f6299faa09234204929e6eb2f149584e9d3ae9
parent7e33f16aee169d3142ea51c4be065759e372260c (diff)
downloadrockbox-feaf62704ed3a3b2eb98f0e49afc1559e0655ba9.tar.gz
rockbox-feaf62704ed3a3b2eb98f0e49afc1559e0655ba9.tar.bz2
rockbox-feaf62704ed3a3b2eb98f0e49afc1559e0655ba9.zip
Grayscale lib: Moved the shift count doubling for unbuffered up/down scrolling out of the asm block itself (cosmetic).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7250 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/lib/gray_scroll.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/plugins/lib/gray_scroll.c b/apps/plugins/lib/gray_scroll.c
index 701d26fc50..f7ace0e47c 100644
--- a/apps/plugins/lib/gray_scroll.c
+++ b/apps/plugins/lib/gray_scroll.c
@@ -339,7 +339,6 @@ void gray_ub_scroll_up(int count)
/* scroll column by column to minimize flicker */
asm (
"move.l %[wide],%%d4\n" /* columns = width */
- "add.l %[cnt],%[cnt] \n" /* shift 2 bits per pixel */
".su_cloop: \n" /* repeat for every column */
"move.l %[addr],%%a0\n" /* get start address */
@@ -379,7 +378,7 @@ void gray_ub_scroll_up(int count)
[wide]"r"(_gray_info.width),
[rows]"r"(_gray_info.bheight - shift),
[addr]"a"(_gray_info.plane_data + _gray_info.plane_size - blockshift),
- [cnt] "d"(count)
+ [cnt] "d"(2 * count)
: /* clobbers */
"a0", "a1", "d0", "d1", "d2", "d3", "d4"
);
@@ -522,7 +521,6 @@ void gray_ub_scroll_down(int count)
/* scroll column by column to minimize flicker */
asm (
"move.l %[wide],%%d4\n" /* columns = width */
- "add.l %[cnt],%[cnt] \n" /* shift 2 bits per pixel */
".sd_cloop: \n" /* repeat for every column */
"move.l %[addr],%%a0\n" /* get start address */
@@ -559,7 +557,7 @@ void gray_ub_scroll_down(int count)
[rows]"r"(_gray_info.bheight - shift),
[psiz]"r"(_gray_info.plane_size),
[addr]"a"(_gray_info.plane_data + blockshift),
- [cnt] "d"(count)
+ [cnt] "d"(2 * count)
: /* clobbers */
"a0", "a1", "d0", "d1", "d2", "d3", "d4"
);