From 4de64a3362ada35f8a6991ff4dcf5e5e38c1b5d6 Mon Sep 17 00:00:00 2001 From: Wolfgang Becker Date: Wed, 9 Aug 2006 13:16:37 +0000 Subject: [PATCH] illuminated console SVN-Revision: 4137 --- src/console.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/console.cpp b/src/console.cpp index d6b22388c..c972a2311 100644 --- 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(); } -- 2.11.0