aboutsummaryrefslogtreecommitdiff
path: root/gui/console.cpp
diff options
context:
space:
mode:
authorMax Horn2002-12-14 16:08:37 +0000
committerMax Horn2002-12-14 16:08:37 +0000
commit531f758c66a361709748614e7201ae6bfdceab22 (patch)
tree731737c737d5390fa5dbb84efe2a9d541e20cb23 /gui/console.cpp
parent9fee7b23264113f11fa6a6edfe9ff6154724fb7f (diff)
downloadscummvm-rg350-531f758c66a361709748614e7201ae6bfdceab22.tar.gz
scummvm-rg350-531f758c66a361709748614e7201ae6bfdceab22.tar.bz2
scummvm-rg350-531f758c66a361709748614e7201ae6bfdceab22.zip
changed console look&feel a little bit
svn-id: r5959
Diffstat (limited to 'gui/console.cpp')
-rw-r--r--gui/console.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/gui/console.cpp b/gui/console.cpp
index 50917777bf..399a026d45 100644
--- a/gui/console.cpp
+++ b/gui/console.cpp
@@ -45,7 +45,7 @@ This code is not finished, so please don't complain :-)
* - a *lot* of others things, this code is in no way complete and heavily under progress
*/
ConsoleDialog::ConsoleDialog(NewGui *gui)
- : Dialog(gui, 5, 0, 320-2*5, 5*kLineHeight+2)
+ : Dialog(gui, 0, 0, 320, 6*kLineHeight+2)
{
_lineWidth = (_w - 2) / kCharWidth;
_linesPerPage = (_h - 2) / kLineHeight;
@@ -63,12 +63,11 @@ ConsoleDialog::ConsoleDialog(NewGui *gui)
void ConsoleDialog::drawDialog()
{
- _gui->blendRect(_x, _y, _w, _h, _gui->_bgcolor);
+ // Blend over the background
+ _gui->blendRect(_x, _y, _w, _h, _gui->_bgcolor, 2);
- // Draw a border (might want to use different colors :-)
- _gui->vline(_x, _y, _y+_h-1, _gui->_textcolorhi);
- _gui->hline(_x, _y+_h-1, _x+_w-1, _gui->_textcolor);
- _gui->vline(_x+_w-1, _y, _y+_h-1, _gui->_textcolor);
+ // Draw a border
+ _gui->hline(_x, _y+_h-1, _x+_w-1, _gui->_color);
// Draw text
int start = _scrollLine - _linesPerPage + 1;
@@ -86,6 +85,7 @@ void ConsoleDialog::drawDialog()
y += kLineHeight;
}
+ // Finally blit it all to the screen
_gui->addDirtyRect(_x, _y, _w, _h);
}