[Scummvm-cvs-logs] SF.net SVN: scummvm:[45289] scummvm/trunk/engines/sci/gui

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Tue Oct 20 22:12:51 CEST 2009


Revision: 45289
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45289&view=rev
Author:   m_kiewitz
Date:     2009-10-20 20:12:50 +0000 (Tue, 20 Oct 2009)

Log Message:
-----------
SCI/newgui: textedit control also changed to draw text like sierra sci

Modified Paths:
--------------
    scummvm/trunk/engines/sci/gui/gui.cpp
    scummvm/trunk/engines/sci/gui/gui_gfx.cpp

Modified: scummvm/trunk/engines/sci/gui/gui.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui.cpp	2009-10-20 20:08:33 UTC (rev 45288)
+++ scummvm/trunk/engines/sci/gui/gui.cpp	2009-10-20 20:12:50 UTC (rev 45289)
@@ -360,7 +360,6 @@
 	Common::Rect textRect = rect;
 	uint16 oldFontId = _gfx->GetFontId();
 
-	textRect.translate(0, 1);
 	rect.grow(1);
 	_gfx->TexteditCursorErase();
 	_gfx->EraseRect(rect);

Modified: scummvm/trunk/engines/sci/gui/gui_gfx.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_gfx.cpp	2009-10-20 20:08:33 UTC (rev 45288)
+++ scummvm/trunk/engines/sci/gui/gui_gfx.cpp	2009-10-20 20:12:50 UTC (rev 45289)
@@ -894,13 +894,11 @@
 		Common::Rect rect;
 		rect = Common::Rect(GET_SEL32V(segMan, controlObject, nsLeft), GET_SEL32V(segMan, controlObject, nsTop),
 							  GET_SEL32V(segMan, controlObject, nsRight), GET_SEL32V(segMan, controlObject, nsBottom));
-		rect.top++;
 		TexteditCursorErase();
 		EraseRect(rect);
 		TextBox(text.c_str(), 0, rect, SCI_TEXT_ALIGNMENT_LEFT, fontId);
 		BitsShow(rect);
 		SetFont(fontId);
-		rect.top--;
 		TexteditCursorDraw(rect, text.c_str(), cursorPos);
 		SetFont(oldFontId);
 		// Write back string


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