From 531f758c66a361709748614e7201ae6bfdceab22 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 14 Dec 2002 16:08:37 +0000 Subject: changed console look&feel a little bit svn-id: r5959 --- gui/console.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gui/console.cpp') 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); } -- cgit v1.2.3