[Scummvm-cvs-logs] SF.net SVN: scummvm:[45288] scummvm/trunk/engines/sci/gui/gui_gfx.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Tue Oct 20 22:08:33 CEST 2009
Revision: 45288
http://scummvm.svn.sourceforge.net/scummvm/?rev=45288&view=rev
Author: m_kiewitz
Date: 2009-10-20 20:08:33 +0000 (Tue, 20 Oct 2009)
Log Message:
-----------
SCI/newgui: Listbox control now draws text up one pixel, so that it matches sierra sci
Modified Paths:
--------------
scummvm/trunk/engines/sci/gui/gui_gfx.cpp
Modified: scummvm/trunk/engines/sci/gui/gui_gfx.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_gfx.cpp 2009-10-20 19:56:37 UTC (rev 45287)
+++ scummvm/trunk/engines/sci/gui/gui_gfx.cpp 2009-10-20 20:08:33 UTC (rev 45288)
@@ -757,6 +757,8 @@
FrameRect(workerRect);
// draw UP/DOWN arrows
+ // we draw UP arrow one pixel lower than sierra did, because it looks nicer. Also the DOWN arrow has one pixel
+ // line inbetween as well
workerRect.top++;
TextBox(controlListUpArrow, 0, workerRect, SCI_TEXT_ALIGNMENT_CENTER, 0);
workerRect.top = workerRect.bottom - 10;
@@ -779,7 +781,7 @@
EraseRect(workerRect);
listEntry = entries[i];
if (listEntry[0]) {
- MoveTo(workerRect.left, workerRect.top + 1);
+ MoveTo(workerRect.left, workerRect.top);
listEntryLen = strlen(listEntry);
DrawText(listEntry, 0, MIN(maxChars, listEntryLen), oldFontId, oldPenColor);
if ((!isAlias) && (i == cursorPos)) {
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