diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2016-03-24 09:12:54 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-03-24 09:12:54 +0100 |
commit | 519d0b165c38854e9ece43907e1dffc1c659dbb4 (patch) | |
tree | bf22247eb2d6a02771b351df421ee647128b2446 /fb-gui.c | |
parent | 4ab7eba10ce61c902ee8949d71359a4f9878ed36 (diff) | |
download | fbida-519d0b165c38854e9ece43907e1dffc1c659dbb4.tar.gz |
move console handling to vt.c
Diffstat (limited to 'fb-gui.c')
-rw-r--r-- | fb-gui.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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; |