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/scvidctl.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/scvidctl.c')
-rw-r--r-- | sys/dev/syscons/scvidctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/syscons/scvidctl.c b/sys/dev/syscons/scvidctl.c index 8374028..732f386c 100644 --- a/sys/dev/syscons/scvidctl.c +++ b/sys/dev/syscons/scvidctl.c @@ -23,7 +23,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: scvidctl.c,v 1.6 1999/01/11 03:18:26 yokota Exp $ + * $Id: scvidctl.c,v 1.7 1999/01/19 11:31:16 yokota Exp $ */ #include "sc.h" @@ -392,11 +392,11 @@ sc_vid_ioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct proc *p) ((video_adapter_info_t *)data)->va_buffer_size = scp->adp->va_buffer_size; ((video_adapter_info_t *)data)->va_mode = scp->adp->va_mode; - ((video_adapter_info_t *)data)->va_mode_flags = scp->adp->va_mode_flags; ((video_adapter_info_t *)data)->va_initial_mode = scp->adp->va_initial_mode; ((video_adapter_info_t *)data)->va_initial_bios_mode = scp->adp->va_initial_bios_mode; + ((video_adapter_info_t *)data)->va_line_width = scp->adp->va_line_width; return 0; case CONS_GET: /* get current video mode */ |