projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dda10ec
)
illuminated console
author
Wolfgang Becker
<uafr@gmx.de>
Wed, 9 Aug 2006 13:16:37 +0000
(13:16 +0000)
committer
Wolfgang Becker
<uafr@gmx.de>
Wed, 9 Aug 2006 13:16:37 +0000
(13:16 +0000)
SVN-Revision: 4137
src/console.cpp
patch
|
blob
|
history
diff --git
a/src/console.cpp
b/src/console.cpp
index
d6b2238
..
c972a23
100644
(file)
--- a/
src/console.cpp
+++ b/
src/console.cpp
@@
-495,6
+495,12
@@
Console::draw(DrawingContext& context)
context.draw_text(font.get(), *i, Vector(4, py), LEFT_ALLIGN, layer);
}
+ //add some light. Problem: can be abused as lightsource.
+ context.push_target();
+ context.set_target(DrawingContext::LIGHTMAP);
+ context.draw_filled_rect( Vector( 0 ,0 ), Vector( SCREEN_WIDTH, height), Color( 1, 1, 1) , layer );
+ context.pop_target();
+
context.pop_transform();
}