summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons/scvidctl.c
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1999-11-08 09:57:16 +0000
committeryokota <yokota@FreeBSD.org>1999-11-08 09:57:16 +0000
commit08dbd4e20b82b1c58904e06e1006833160d84d17 (patch)
tree0e00c12812907f0b019eea94815ce5d163394253 /sys/dev/syscons/scvidctl.c
parente5e0ffb3a7e3ab05c893142b7db80bfc589d21b8 (diff)
downloadFreeBSD-src-08dbd4e20b82b1c58904e06e1006833160d84d17.zip
FreeBSD-src-08dbd4e20b82b1c58904e06e1006833160d84d17.tar.gz
- Removed SC_VIDEO_DEBUG. It is broken and useless now.
Diffstat (limited to 'sys/dev/syscons/scvidctl.c')
-rw-r--r--sys/dev/syscons/scvidctl.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/sys/dev/syscons/scvidctl.c b/sys/dev/syscons/scvidctl.c
index 305e6f7..0923a7b 100644
--- a/sys/dev/syscons/scvidctl.c
+++ b/sys/dev/syscons/scvidctl.c
@@ -323,13 +323,6 @@ sc_set_pixel_mode(scr_stat *scp, struct tty *tp, int xsize, int ysize,
if ((*vidsw[scp->sc->adapter]->get_info)(scp->sc->adp, scp->mode, &info))
return ENODEV; /* this shouldn't happen */
-#ifdef SC_VIDEO_DEBUG
- if (scp->scr_buf != NULL) {
- printf("set_pixel_mode(): mode:%x, col:%d, row:%d, font:%d\n",
- scp->mode, xsize, ysize, fontsize);
- }
-#endif
-
/* adjust argument values */
if ((fontsize <= 0) || (fontsize == FONT_NONE))
fontsize = info.vi_cheight;
@@ -366,17 +359,6 @@ sc_set_pixel_mode(scr_stat *scp, struct tty *tp, int xsize, int ysize,
if (ysize <= 0)
ysize = info.vi_height/fontsize;
-#ifdef SC_VIDEO_DEBUG
- if (scp->scr_buf != NULL) {
- printf("set_pixel_mode(): mode:%x, col:%d, row:%d, font:%d\n",
- scp->mode, xsize, ysize, fontsize);
- printf("set_pixel_mode(): window:%p, %dx%d, xoff:%d, yoff:%d\n",
- (void *)scp->sc->adp->va_window, info.vi_width, info.vi_height,
- (info.vi_width/8 - xsize)/2,
- (info.vi_height/fontsize - ysize)/2);
- }
-#endif
-
if ((info.vi_width < xsize*8) || (info.vi_height < ysize*fontsize))
return EINVAL;
@@ -438,10 +420,6 @@ sc_set_pixel_mode(scr_stat *scp, struct tty *tp, int xsize, int ysize,
scp->status &= ~UNKNOWN_MODE;
-#ifdef SC_VIDEO_DEBUG
- printf("set_pixel_mode(): status:%x\n", scp->status);
-#endif
-
if (tp == NULL)
return 0;
if (tp->t_winsize.ws_col != scp->xsize
OpenPOWER on IntegriCloud