This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "A pseudo Operating System for the Dreamcast.".
The branch, master has been updated
via 9d2176ea7d0917b9759185b92c4d08cf773d8980 (commit)
from 716ab792d9dad5c1fcc9a55c5f495fa6c1a9e12a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9d2176ea7d0917b9759185b92c4d08cf773d8980
Author: Tchan0 <617...@us...>
Date: Fri May 10 04:39:15 2024 +0200
fb_console: use memcpy4/memset4 (#549)
Co-authored-by: T_chan <>
-----------------------------------------------------------------------
Summary of changes:
kernel/arch/dreamcast/util/fb_console.c | 4 ++--
kernel/arch/dreamcast/util/fb_console_naomi.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/kernel/arch/dreamcast/util/fb_console.c b/kernel/arch/dreamcast/util/fb_console.c
index dd8bc4bd..681978bf 100644
--- a/kernel/arch/dreamcast/util/fb_console.c
+++ b/kernel/arch/dreamcast/util/fb_console.c
@@ -76,10 +76,10 @@ static int fb_write(int c) {
/* If going down a line put us over the edge of the screen, move
everything up a line, fixing the problem. */
if(cur_y + FONT_CHAR_HEIGHT > max_y) {
- memcpy2(t + min_y * fb_w, t + (min_y + FONT_CHAR_HEIGHT) * fb_w,
+ memcpy4(t + min_y * fb_w, t + (min_y + FONT_CHAR_HEIGHT) * fb_w,
(cur_y - min_y - FONT_CHAR_HEIGHT) * fb_w * 2);
cur_y -= FONT_CHAR_HEIGHT;
- memset2(t + cur_y * fb_w, 0, FONT_CHAR_HEIGHT * fb_w * 2);
+ memset4(t + cur_y * fb_w, 0, FONT_CHAR_HEIGHT * fb_w * 2);
}
}
diff --git a/kernel/arch/dreamcast/util/fb_console_naomi.c b/kernel/arch/dreamcast/util/fb_console_naomi.c
index c221b44b..65264479 100644
--- a/kernel/arch/dreamcast/util/fb_console_naomi.c
+++ b/kernel/arch/dreamcast/util/fb_console_naomi.c
@@ -78,10 +78,10 @@ static int fb_write(int c) {
/* If going down a line put us over the edge of the screen, move
everything up a line, fixing the problem. */
if(cur_y + FONT_CHAR_HEIGHT > max_y) {
- memcpy2(t + min_y * fb_w, t + (min_y + FONT_CHAR_HEIGHT) * fb_w,
+ memcpy4(t + min_y * fb_w, t + (min_y + FONT_CHAR_HEIGHT) * fb_w,
(cur_y - min_y - FONT_CHAR_HEIGHT) * fb_w * 2);
cur_y -= FONT_CHAR_HEIGHT;
- memset2(t + cur_y * fb_w, 0, FONT_CHAR_HEIGHT * fb_w * 2);
+ memset4(t + cur_y * fb_w, 0, FONT_CHAR_HEIGHT * fb_w * 2);
}
}
hooks/post-receive
--
A pseudo Operating System for the Dreamcast.
|