From: John Hodge Date: Fri, 18 Jun 2010 08:45:38 +0000 (+0800) Subject: VESA scrolling bug fixed (caused by the removal of memcpyd) X-Git-Tag: rel0.06~148 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=24dfefd4154dcafa0c4ace83da68415c2c8e3d5d;p=tpg%2Facess2.git VESA scrolling bug fixed (caused by the removal of memcpyd) --- 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; }