[Scummvm-cvs-logs] SF.net SVN: scummvm:[44622] scummvm/trunk/engines/kyra/gui_lol.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Sun Oct 4 19:37:47 CEST 2009
Revision: 44622
http://scummvm.svn.sourceforge.net/scummvm/?rev=44622&view=rev
Author: lordhoto
Date: 2009-10-04 17:37:46 +0000 (Sun, 04 Oct 2009)
Log Message:
-----------
LoL PC98: Fix thumbnail generation via ingame menu.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/gui_lol.cpp
Modified: scummvm/trunk/engines/kyra/gui_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/gui_lol.cpp 2009-10-04 16:41:53 UTC (rev 44621)
+++ scummvm/trunk/engines/kyra/gui_lol.cpp 2009-10-04 17:37:46 UTC (rev 44622)
@@ -2524,7 +2524,19 @@
void GUI_LoL::createScreenThumbnail(Graphics::Surface &dst) {
uint8 *screenPal = new uint8[768];
_screen->getRealPalette(1, screenPal);
- ::createThumbnail(&dst, _screen->getCPagePtr(7), Screen::SCREEN_W, Screen::SCREEN_H, screenPal);
+
+ if (_vm->gameFlags().platform == Common::kPlatformPC98) {
+ uint8 *screen = new uint8[Screen::SCREEN_W * Screen::SCREEN_H];
+ assert(screen);
+
+ _screen->copyRegionToBuffer(7, 0, 0, 320, 200, screen);
+ Screen_LoL::convertPC98Gfx(screen, Screen::SCREEN_W, Screen::SCREEN_H, Screen::SCREEN_W);
+ ::createThumbnail(&dst, screen, Screen::SCREEN_W, Screen::SCREEN_H, screenPal);
+ delete[] screen;
+ } else {
+ ::createThumbnail(&dst, _screen->getCPagePtr(7), Screen::SCREEN_W, Screen::SCREEN_H, screenPal);
+ }
+
delete[] screenPal;
}
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