VESA scrolling bug fixed (caused by the removal of memcpyd)
authorJohn Hodge <[email protected]>
Fri, 18 Jun 2010 08:45:38 +0000 (16:45 +0800)
committerJohn Hodge <[email protected]>
Fri, 18 Jun 2010 08:45:38 +0000 (16:45 +0800)
Modules/Display/VESA/main.c

index c075fcc..9d48432 100644 (file)
@@ -498,7 +498,7 @@ void Vesa_2D_Blit(void *Ent, Uint16 DstX, Uint16 DstY, Uint16 SrcX, Uint16 SrcY,
                // Normal copy is OK\r
                Debug("memcpy scroll");\r
                while( H -- ) {\r
-                       memcpy((void*)gpVesa_Framebuffer + dst, (void*)gpVesa_Framebuffer + src, W);\r
+                       memcpy((void*)gpVesa_Framebuffer + dst, (void*)gpVesa_Framebuffer + src, W*sizeof(Uint32));\r
                        dst += scrnpitch;\r
                        src += scrnpitch;\r
                }\r

UCC git Repository :: git.ucc.asn.au