Update of /cvsroot/vba/VisualBoyAdvance/src/win32
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv4893/src/win32
Modified Files:
display.cpp
Log Message:
Index: display.cpp
===================================================================
RCS file: /cvsroot/vba/VisualBoyAdvance/src/win32/display.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** display.cpp 6 Jun 2006 21:27:01 -0000 1.1
--- display.cpp 6 Jun 2006 22:32:19 -0000 1.2
***************
*** 82,85 ****
--- 82,95 ----
{
case 16:
+ register unsigned int lineSize = width<<1;
+ register unsigned char *src = ((unsigned char*)source) + lineSize + 4;
+ register unsigned char *dst = (unsigned char*)destination;
+ do {
+ MoveMemory( dst, src, lineSize );
+ src+=lineSize;
+ dst+=lineSize;
+ src += 2;
+ dst += (destinationPitch - lineSize);
+ } while ( --height);
break;
case 32:
|