[Scummvm-cvs-logs] SF.net SVN: scummvm:[48794] scummvm/trunk/engines/sci/graphics/controls.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sun Apr 25 17:20:53 CEST 2010


Revision: 48794
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48794&view=rev
Author:   m_kiewitz
Date:     2010-04-25 15:20:52 +0000 (Sun, 25 Apr 2010)

Log Message:
-----------
SCI: reset cursor state when kDrawControl gets called on textedit controls, fixes cursor placement issues

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/controls.cpp

Modified: scummvm/trunk/engines/sci/graphics/controls.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/controls.cpp	2010-04-25 15:14:57 UTC (rev 48793)
+++ scummvm/trunk/engines/sci/graphics/controls.cpp	2010-04-25 15:20:52 UTC (rev 48794)
@@ -283,6 +283,7 @@
 	uint16 oldFontId = _text16->GetFontId();
 
 	rect.grow(1);
+	_texteditCursorVisible = false;
 	texteditCursorErase();
 	_paint16->eraseRect(rect);
 	_text16->Box(text, 0, textRect, SCI_TEXT16_ALIGNMENT_LEFT, fontId);


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