aboutsummaryrefslogtreecommitdiffstats
path: root/fb-gui.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-03-24 09:12:54 +0100
committerGerd Hoffmann <kraxel@redhat.com>2016-03-24 09:12:54 +0100
commit519d0b165c38854e9ece43907e1dffc1c659dbb4 (patch)
treebf22247eb2d6a02771b351df421ee647128b2446 /fb-gui.c
parent4ab7eba10ce61c902ee8949d71359a4f9878ed36 (diff)
downloadfbida-519d0b165c38854e9ece43907e1dffc1c659dbb4.tar.gz
move console handling to vt.c
Diffstat (limited to 'fb-gui.c')
-rw-r--r--fb-gui.c8
1 files changed, 3 insertions, 5 deletions
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 <fontconfig/fontconfig.h>
#include <fontconfig/fcfreetype.h>
+#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;