diff options
author | yokota <yokota@FreeBSD.org> | 1999-02-05 11:52:13 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 1999-02-05 11:52:13 +0000 |
commit | 6b5cb42c67aa5bea7e114c03e3ff298be4e22f17 (patch) | |
tree | 1e785ce94ccae6beb173c534b6e18429ad0ad8bb /sys/dev/syscons/syscons.c | |
parent | 2a4a03a1d96aca0a0fdcff0d1bbd8c69f95d8937 (diff) | |
download | FreeBSD-src-6b5cb42c67aa5bea7e114c03e3ff298be4e22f17.zip FreeBSD-src-6b5cb42c67aa5bea7e114c03e3ff298be4e22f17.tar.gz |
- Don't assume the line length in the video memory is always the same as
the screen width.
- Store the current video mode information in the `video_adapter' struct.
- The size of the `v_offscreensize' field in the VESA mode information
block is u_int16, not u_int8.
Diffstat (limited to 'sys/dev/syscons/syscons.c')
-rw-r--r-- | sys/dev/syscons/syscons.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index ebe15a0..1e3f5e0 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.296 1999/01/28 17:31:58 dillon Exp $ + * $Id: syscons.c,v 1.297 1999/01/30 12:17:30 phk Exp $ */ #include "sc.h" @@ -2327,7 +2327,7 @@ set_scrn_saver_mode(scr_stat *scp, int mode, u_char *pal, int border) return 0; scp->mode = mode; if (set_mode(scp) == 0) { - if (scp->adp->va_mode_flags & V_INFO_GRAPHICS) + if (scp->adp->va_info.vi_flags & V_INFO_GRAPHICS) scp->status |= GRAPHICS_MODE; if (pal != NULL) load_palette(scp->adp, pal); |