diff options
author | Martin Kiewitz | 2009-10-20 20:08:33 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-10-20 20:08:33 +0000 |
commit | d7ce8440baf3a2b2d99fa9157102c4080836d9bd (patch) | |
tree | c23a819b370664d05319957af4bf0808bfbba317 /engines/sci/gui/gui_gfx.cpp | |
parent | 35071a25b4d3d8f1c5464a5b704586c813349747 (diff) | |
download | scummvm-rg350-d7ce8440baf3a2b2d99fa9157102c4080836d9bd.tar.gz scummvm-rg350-d7ce8440baf3a2b2d99fa9157102c4080836d9bd.tar.bz2 scummvm-rg350-d7ce8440baf3a2b2d99fa9157102c4080836d9bd.zip |
SCI/newgui: Listbox control now draws text up one pixel, so that it matches sierra sci
svn-id: r45288
Diffstat (limited to 'engines/sci/gui/gui_gfx.cpp')
-rw-r--r-- | engines/sci/gui/gui_gfx.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp index 2a4681e18a..bb832b288f 100644 --- a/engines/sci/gui/gui_gfx.cpp +++ b/engines/sci/gui/gui_gfx.cpp @@ -757,6 +757,8 @@ void SciGuiGfx::drawListControl(Common::Rect rect, reg_t obj, int16 maxChars, in 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 @@ void SciGuiGfx::drawListControl(Common::Rect rect, reg_t obj, int16 maxChars, in 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)) { |