summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-04-13 22:34:16 +0000
committerobrien <obrien@FreeBSD.org>2002-04-13 22:34:16 +0000
commitc25844b47e78024dd976d0487857ca3fb061a775 (patch)
tree4969d923e03dbc9c0e1fcb0f70bd693684af2cc5 /sys/dev/syscons
parente824bdd8fba747baf4c0a08236c3fccd02759329 (diff)
downloadFreeBSD-src-c25844b47e78024dd976d0487857ca3fb061a775.zip
FreeBSD-src-c25844b47e78024dd976d0487857ca3fb061a775.tar.gz
Turn on TGA support.
Submitted by: Andrew M. Miklic <AndrwMklc@cs.com>
Diffstat (limited to 'sys/dev/syscons')
-rw-r--r--sys/dev/syscons/scgfbrndr.c3
-rw-r--r--sys/dev/syscons/syscons.c4
-rw-r--r--sys/dev/syscons/syscons.h11
3 files changed, 13 insertions, 5 deletions
diff --git a/sys/dev/syscons/scgfbrndr.c b/sys/dev/syscons/scgfbrndr.c
index 29a2d30..133a9be 100644
--- a/sys/dev/syscons/scgfbrndr.c
+++ b/sys/dev/syscons/scgfbrndr.c
@@ -256,7 +256,8 @@ gfb_cursor(scr_stat *scp, int at, int blink, int on, int flip)
video_adapter_t *adp;
adp = scp->sc->adp;
- if (scp->cursor_height <= 0) /* the text cursor is disabled */
+ if (scp->curs_attr.height <= 0)
+ /* the text cursor is disabled */
return;
if (on) {
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 037b005..982c7c2 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -2907,14 +2907,14 @@ init_scp(sc_softc_t *sc, int vty, scr_stat *scp)
scp->status |= GRAPHICS_MODE;
scp->xpixel = info.vi_width;
scp->ypixel = info.vi_height;
- scp->xsize = info.vi_width/8;
+ scp->xsize = info.vi_width/info.vi_cwidth;
scp->ysize = info.vi_height/info.vi_cheight;
scp->font_size = 0;
scp->font = NULL;
} else {
scp->xsize = info.vi_width;
scp->ysize = info.vi_height;
- scp->xpixel = scp->xsize*8;
+ scp->xpixel = scp->xsize*info.vi_cwidth;
scp->ypixel = scp->ysize*info.vi_cheight;
if (info.vi_cheight < 14) {
scp->font_size = 8;
diff --git a/sys/dev/syscons/syscons.h b/sys/dev/syscons/syscons.h
index b5e206a..08e8dfc 100644
--- a/sys/dev/syscons/syscons.h
+++ b/sys/dev/syscons/syscons.h
@@ -129,8 +129,15 @@
/* misc defines */
#define FALSE 0
#define TRUE 1
-#define COL 80
-#define ROW 25
+
+/*
+ The following #defines are hard-coded for a maximum text
+ resolution corresponding to a maximum framebuffer
+ resolution of 1600x1200 with an 8x8 font...
+*/
+#define COL 200
+#define ROW 150
+
#define PCBURST 128
#ifndef BELL_DURATION
OpenPOWER on IntegriCloud