summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-03-25 00:31:07 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-03-25 00:31:07 +0100
commite31f956597f758154a5f6ca7a5793230c8eff936 (patch)
treee14fceaea561b64c3e72baf73965354f1f6e3956
parentMerge "Fix recovery image text rendering." (diff)
parentRemove support for Cupcake kernels. (diff)
downloadandroid_bootable_recovery-e31f956597f758154a5f6ca7a5793230c8eff936.tar
android_bootable_recovery-e31f956597f758154a5f6ca7a5793230c8eff936.tar.gz
android_bootable_recovery-e31f956597f758154a5f6ca7a5793230c8eff936.tar.bz2
android_bootable_recovery-e31f956597f758154a5f6ca7a5793230c8eff936.tar.lz
android_bootable_recovery-e31f956597f758154a5f6ca7a5793230c8eff936.tar.xz
android_bootable_recovery-e31f956597f758154a5f6ca7a5793230c8eff936.tar.zst
android_bootable_recovery-e31f956597f758154a5f6ca7a5793230c8eff936.zip
Diffstat (limited to '')
-rw-r--r--minui/graphics.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/minui/graphics.c b/minui/graphics.c
index 1a9be6cb2..9d1e1b480 100644
--- a/minui/graphics.c
+++ b/minui/graphics.c
@@ -48,8 +48,6 @@ static int overscan_percent = OVERSCAN_PERCENT;
static int overscan_offset_x = 0;
static int overscan_offset_y = 0;
-static int gr_vt_fd = -1;
-
static unsigned char gr_current_r = 255;
static unsigned char gr_current_g = 255;
static unsigned char gr_current_b = 255;
@@ -362,17 +360,6 @@ int gr_init(void)
{
gr_init_font();
- gr_vt_fd = open("/dev/tty0", O_RDWR | O_SYNC);
- if (gr_vt_fd < 0) {
- // This is non-fatal; post-Cupcake kernels don't have tty0.
- perror("can't open /dev/tty0");
- } else if (ioctl(gr_vt_fd, KDSETMODE, (void*) KD_GRAPHICS)) {
- // However, if we do open tty0, we expect the ioctl to work.
- perror("failed KDSETMODE to KD_GRAPHICS on tty0");
- gr_exit();
- return -1;
- }
-
gr_backend = open_adf();
if (gr_backend) {
gr_draw = gr_backend->init(gr_backend);
@@ -401,10 +388,6 @@ int gr_init(void)
void gr_exit(void)
{
gr_backend->exit(gr_backend);
-
- ioctl(gr_vt_fd, KDSETMODE, (void*) KD_TEXT);
- close(gr_vt_fd);
- gr_vt_fd = -1;
}
int gr_fb_width(void)