From 24dfefd4154dcafa0c4ace83da68415c2c8e3d5d Mon Sep 17 00:00:00 2001 From: John Hodge Date: Fri, 18 Jun 2010 16:45:38 +0800 Subject: [PATCH] VESA scrolling bug fixed (caused by the removal of memcpyd) --- Modules/Display/VESA/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Display/VESA/main.c b/Modules/Display/VESA/main.c index c075fccd..9d484320 100644 --- a/Modules/Display/VESA/main.c +++ b/Modules/Display/VESA/main.c @@ -498,7 +498,7 @@ void Vesa_2D_Blit(void *Ent, Uint16 DstX, Uint16 DstY, Uint16 SrcX, Uint16 SrcY, // Normal copy is OK Debug("memcpy scroll"); while( H -- ) { - memcpy((void*)gpVesa_Framebuffer + dst, (void*)gpVesa_Framebuffer + src, W); + memcpy((void*)gpVesa_Framebuffer + dst, (void*)gpVesa_Framebuffer + src, W*sizeof(Uint32)); dst += scrnpitch; src += scrnpitch; } -- 2.20.1