[Scummvm-cvs-logs] SF.net SVN: scummvm:[42158] scummvm/branches/gsoc2009-16bit/engines/groovie
spookypeanut at users.sourceforge.net
spookypeanut at users.sourceforge.net
Mon Jul 6 00:57:58 CEST 2009
Revision: 42158
http://scummvm.svn.sourceforge.net/scummvm/?rev=42158&view=rev
Author: spookypeanut
Date: 2009-07-05 22:57:58 +0000 (Sun, 05 Jul 2009)
Log Message:
-----------
Groovie: get hotspots working correctly in 11H RGB
Modified Paths:
--------------
scummvm/branches/gsoc2009-16bit/engines/groovie/graphics.cpp
scummvm/branches/gsoc2009-16bit/engines/groovie/groovie.cpp
scummvm/branches/gsoc2009-16bit/engines/groovie/script.cpp
Modified: scummvm/branches/gsoc2009-16bit/engines/groovie/graphics.cpp
===================================================================
--- scummvm/branches/gsoc2009-16bit/engines/groovie/graphics.cpp 2009-07-05 22:37:28 UTC (rev 42157)
+++ scummvm/branches/gsoc2009-16bit/engines/groovie/graphics.cpp 2009-07-05 22:57:58 UTC (rev 42158)
@@ -31,8 +31,8 @@
GraphicsMan::GraphicsMan(GroovieEngine *vm) :
_vm(vm), _changed(false), _fading(0) {
// Create the game surfaces
- _foreground.create(640, 320, 1);
- _background.create(640, 320, 1);
+ _foreground.create(640, 320, _vm->_pixelFormat.bytesPerPixel);
+ _background.create(640, 320, _vm->_pixelFormat.bytesPerPixel);
}
GraphicsMan::~GraphicsMan() {
Modified: scummvm/branches/gsoc2009-16bit/engines/groovie/groovie.cpp
===================================================================
--- scummvm/branches/gsoc2009-16bit/engines/groovie/groovie.cpp 2009-07-05 22:37:28 UTC (rev 42157)
+++ scummvm/branches/gsoc2009-16bit/engines/groovie/groovie.cpp 2009-07-05 22:57:58 UTC (rev 42158)
@@ -82,6 +82,7 @@
break;
case kGroovieT7G:
initGraphics(640, 480, true);
+ _pixelFormat = Graphics::PixelFormat::createFormatCLUT8();
break;
}
Modified: scummvm/branches/gsoc2009-16bit/engines/groovie/script.cpp
===================================================================
--- scummvm/branches/gsoc2009-16bit/engines/groovie/script.cpp 2009-07-05 22:37:28 UTC (rev 42157)
+++ scummvm/branches/gsoc2009-16bit/engines/groovie/script.cpp 2009-07-05 22:57:58 UTC (rev 42158)
@@ -354,7 +354,7 @@
Common::isDebugChannelEnabled(kGroovieDebugAll)) {
rect.translate(0, -80);
_vm->_graphicsMan->_foreground.frameRect(rect, 250);
- _vm->_system->copyRectToScreen((byte*)_vm->_graphicsMan->_foreground.getBasePtr(0, 0), 640, 0, 80, 640, 320);
+ _vm->_system->copyRectToScreen((byte*)_vm->_graphicsMan->_foreground.getBasePtr(0, 0), _vm->_graphicsMan->_foreground.pitch, 0, 80, 640, 320);
_vm->_system->updateScreen();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list