From 0cdb05c075ade2832faa19025f7922a21709252f Mon Sep 17 00:00:00 2001 From: chris Date: Sun, 3 Feb 2008 19:38:29 +0000 Subject: [PATCH] Use memmove rather than memcpy when moving rows around the framebuffer. This fixes a problem where scrolling down fills the whole screen with the first line on screen. --- sys/arch/arm/iomd/vidcvideo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/arm/iomd/vidcvideo.c b/sys/arch/arm/iomd/vidcvideo.c index c9a05648b69a..980826791166 100644 --- a/sys/arch/arm/iomd/vidcvideo.c +++ b/sys/arch/arm/iomd/vidcvideo.c @@ -1,4 +1,4 @@ -/* $NetBSD: vidcvideo.c,v 1.31 2007/03/04 05:59:38 christos Exp $ */ +/* $NetBSD: vidcvideo.c,v 1.32 2008/02/03 19:38:29 chris Exp $ */ /* * Copyright (c) 2001 Reinoud Zandijk @@ -36,7 +36,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: vidcvideo.c,v 1.31 2007/03/04 05:59:38 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vidcvideo.c,v 1.32 2008/02/03 19:38:29 chris Exp $"); #include #include @@ -828,7 +828,7 @@ static void vv_copyrows(void *id, int srcrow, int dstrow, int nrows) src = ri->ri_bits + srcrow * ri->ri_font->fontheight * ri->ri_stride; dst = ri->ri_bits + dstrow * ri->ri_font->fontheight * ri->ri_stride; - memcpy(dst, src, size); + memmove(dst, src, size); }