From 6825938310f3be7343a7d7d26a9f4381d43453d0 Mon Sep 17 00:00:00 2001 From: stephena Date: Fri, 29 Dec 2006 18:19:50 +0000 Subject: [PATCH] Fixed bug in GP2X snapshot code. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1253 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/gp2x/FrameBufferGP2X.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stella/src/gp2x/FrameBufferGP2X.cxx b/stella/src/gp2x/FrameBufferGP2X.cxx index 3df477821..8e75990e6 100644 --- a/stella/src/gp2x/FrameBufferGP2X.cxx +++ b/stella/src/gp2x/FrameBufferGP2X.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: FrameBufferGP2X.cxx,v 1.18 2006-12-29 18:01:17 stephena Exp $ +// $Id: FrameBufferGP2X.cxx,v 1.19 2006-12-29 18:19:50 stephena Exp $ //============================================================================ #include @@ -191,7 +191,7 @@ void FrameBufferGP2X::scanline(uInt32 row, uInt8* data) uInt32 bpp = myScreen->format->BytesPerPixel; uInt8* start = (uInt8*) myBasePtr; - uInt32 yoffset = (row + myScreenDim.y) * myScreen->pitch; + uInt32 yoffset = row * myScreen->pitch; uInt32 pixel = 0; uInt8 *p, r, g, b;