Deleted Added
full compact
29c29
< * $Id$
---
> * $Id: scvidctl.c,v 1.1 1998/09/15 18:16:37 sos Exp $
52d51
< extern u_short *Crtat;
236,237c235,236
< printf("set_pixel_mode(): Crtat:%x, %dx%d, xoff:%d, yoff:%d\n",
< Crtat, info.vi_width, info.vi_height,
---
> printf("set_pixel_mode(): window:%x, %dx%d, xoff:%d, yoff:%d\n",
> adp->va_window, info.vi_width, info.vi_height,
242a242,256
> if ((info.vi_width < xsize*8) || (info.vi_height < ysize*fontsize))
> return EINVAL;
>
> /* only 16 color, 4 plane modes are supported XXX */
> if ((info.vi_depth != 4) || (info.vi_planes != 4))
> return ENODEV;
>
> /*
> * set_pixel_mode() currently does not support video modes whose
> * memory size is larger than 64K. Because such modes require
> * bank switching to access the entire screen. XXX
> */
> if (info.vi_width*info.vi_height/8 > info.vi_window_size*1024)
> return ENODEV;
>
271d284
< /* FIXME */
273c286
< bzero(Crtat, scp->xpixel*scp->ypixel/8);
---
> set_border(scp, scp->border);
337a351,356
> /* generic text modes */
> case SW_TEXT_80x25: case SW_TEXT_80x30:
> case SW_TEXT_80x43: case SW_TEXT_80x50:
> case SW_TEXT_80x60:
> /* FALL THROUGH */
>
414c433
< if (scp == cur_console) {
---
> if (scp == cur_console)
416,419d434
< /* FIXME */
< if (scp->status & PIXEL_MODE)
< bzero(Crtat, scp->xpixel*scp->ypixel/8);
< }
427c442
< if (!(scp->status & PIXEL_MODE))
---
> if (scp->status & GRAPHICS_MODE)
440,441d454
< /* FIXME */
< bzero(Crtat, scp->xpixel*scp->ypixel/8);