Fix a typo and an error in color plane offset calculation. Submitted by

Konrad Schroder <perseant@hitl.washington.edu>, PR #2695.
This commit is contained in:
thorpej 1996-08-13 20:52:43 +00:00
parent 082a70252b
commit 28df9248ce
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cgfour.c,v 1.7 1996/04/01 17:29:58 christos Exp $ */
/* $NetBSD: cgfour.c,v 1.8 1996/08/13 20:52:43 thorpej Exp $ */
/*
* Copyright (c) 1996 Jason R. Thorpe. All rights reserved.
@ -402,7 +402,7 @@ cgfourmmap(dev, off, prot)
panic("cgfourmap");
if ((u_int)off >= NOOVERLAY) {
off =- NOOVERLAY;
off -= NOOVERLAY;
/*
* X11 maps a huge chunk of the frame buffer; far more than
@ -423,7 +423,7 @@ cgfourmmap(dev, off, prot)
* in enable plane
*/
poff = (off - START_ENABLE) + PFOUR_COLOR_OFF_ENABLE;
} else if ((u_int)off < END_COLOR) {
} else if ((u_int)off < sc->sc_fb.fb_type.fb_size) {
/*
* in colour plane
*/