public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f15527d
)
vt: go back to memcpy
author
Alan Cox
<alan@etchedpixels.co.uk>
Fri, 28 Nov 2014 22:09:52 +0000
(22:09 +0000)
committer
Alan Cox
<alan@etchedpixels.co.uk>
Fri, 28 Nov 2014 22:09:52 +0000
(22:09 +0000)
We do need to switch to a memmove, but now we've fixed memcpy we can just
tag it as a TODO. Reverse scroll is busted on dragon due to this
Kernel/vt.c
patch
|
blob
|
history
diff --git
a/Kernel/vt.c
b/Kernel/vt.c
index
77cf3cb
..
81ffb65
100644
(file)
--- a/
Kernel/vt.c
+++ b/
Kernel/vt.c
@@
-233,13
+233,7
@@
void clear_across(int8_t y, int8_t x, int16_t l)
void scroll_up(void)
{
- unsigned char *p = VT_BASE;
- int n = VT_WIDTH * VT_BOTTOM;
- while (n--) {
- *p = p[VT_WIDTH];
- p++;
- }
-// memcpy(VT_BASE, VT_BASE + VT_WIDTH, VT_WIDTH * VT_BOTTOM);
+ memcpy(VT_BASE, VT_BASE + VT_WIDTH, VT_WIDTH * VT_BOTTOM);
}
void scroll_down(void)