[Scummvm-cvs-logs] SF.net SVN: scummvm:[47142] scummvm/trunk/engines/sci/graphics/gui.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Thu Jan 7 21:41:53 CET 2010
Revision: 47142
http://scummvm.svn.sourceforge.net/scummvm/?rev=47142&view=rev
Author: m_kiewitz
Date: 2010-01-07 20:41:52 +0000 (Thu, 07 Jan 2010)
Log Message:
-----------
SCI: kPortrait actually gets lowres coordinates that need to get adjusted according to curPort (does this make sense? noooo), fixes portrait coordinates in kq6
Modified Paths:
--------------
scummvm/trunk/engines/sci/graphics/gui.cpp
Modified: scummvm/trunk/engines/sci/graphics/gui.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/gui.cpp 2010-01-07 20:36:00 UTC (rev 47141)
+++ scummvm/trunk/engines/sci/graphics/gui.cpp 2010-01-07 20:41:52 UTC (rev 47142)
@@ -852,6 +852,10 @@
void SciGui::portraitShow(Common::String resourceName, Common::Point position, uint16 resourceNum, uint16 noun, uint16 verb, uint16 cond, uint16 seq) {
Portrait *myPortrait = new Portrait(_s->resMan, _screen, _palette, resourceName);
// TODO: cache portraits
+ // adjust given coordinates to curPort (but dont adjust coordinates on upscaledHires_Save_Box and give us hires coordinates
+ // on kDrawCel, yeah this whole stuff makes sense)
+ position.x += _gfx->GetPort()->left; position.y += _gfx->GetPort()->top;
+ position.x *= 2; position.y *= 2;
myPortrait->draw(position);
delete myPortrait;
}
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