From 519d0b165c38854e9ece43907e1dffc1c659dbb4 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 24 Mar 2016 09:12:54 +0100 Subject: move console handling to vt.c --- fb-gui.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'fb-gui.c') diff --git a/fb-gui.c b/fb-gui.c index 4f248ad..0080309 100644 --- a/fb-gui.c +++ b/fb-gui.c @@ -11,13 +11,11 @@ #include #include +#include "vt.h" #include "fbtools.h" #include "dither.h" #include "fb-gui.h" -/* public */ -int visible = 1; - static int ys = 3; static int xs = 10; @@ -95,7 +93,7 @@ void shadow_render(gfxstate *gfx) unsigned int offset = 0; int i; - if (!visible) + if (!console_visible) return; for (i = 0; i < sheight; i++, offset += gfx->stride) { if (0 == sdirty[i]) @@ -465,7 +463,7 @@ void shadow_draw_text_box(FT_Face face, int x, int y, int percent, wchar_t *line { unsigned int i,len,max, x1, x2, y1, y2; - if (!visible) + if (!console_visible) return; max = 0; -- cgit