[Scummvm-cvs-logs] CVS: scummvm/gui console.cpp,1.2,1.3
Max Horn
fingolfin at users.sourceforge.net
Sat Dec 14 08:09:03 CET 2002
Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv26765/gui
Modified Files:
console.cpp
Log Message:
changed console look&feel a little bit
Index: console.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/console.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- console.cpp 14 Dec 2002 15:45:45 -0000 1.2
+++ console.cpp 14 Dec 2002 16:08:37 -0000 1.3
@@ -45,7 +45,7 @@
* - 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 @@
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 @@
y += kLineHeight;
}
+ // Finally blit it all to the screen
_gui->addDirtyRect(_x, _y, _w, _h);
}
More information about the Scummvm-git-logs
mailing list