diff options
| author | Kazutaka YOKOTA <yokota@FreeBSD.org> | 1999-08-22 03:31:13 +0000 |
|---|---|---|
| committer | Kazutaka YOKOTA <yokota@FreeBSD.org> | 1999-08-22 03:31:13 +0000 |
| commit | 5e7a62b28b77ba1f47da67d5ef2d31abf7ab1700 (patch) | |
| tree | 27e1aac8cc88a1be156fa1e99b132e1959ef548e /lib/libvgl/simple.c | |
| parent | 4f2a0d4f96861ab14dd9d82a8d49ddcd181e8993 (diff) | |
Notes
Diffstat (limited to 'lib/libvgl/simple.c')
| -rw-r--r-- | lib/libvgl/simple.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libvgl/simple.c b/lib/libvgl/simple.c index 2b966e5d91c3..9cef00f185b2 100644 --- a/lib/libvgl/simple.c +++ b/lib/libvgl/simple.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: simple.c,v 1.8 1997/08/15 12:32:59 sos Exp $ + * $Id: simple.c,v 1.1 1997/08/17 21:09:35 sos Exp $ */ #include <signal.h> @@ -94,7 +94,7 @@ VGLGetXY(VGLBitmap *object, int x, int y) break; case VIDBUF8X: outb(0x3ce, 0x04); outb(0x3cf, x & 0x3); - return object->Bitmap[(unsigned)(object->Xsize/4*y)+(x/4)]; + return object->Bitmap[(unsigned)(object->Xsize/2*y)+(x/4)]; break; case VIDBUF4: return (object->Bitmap[((y*object->Xsize/8)+x/8)]&(0x80>>(x%8))) ? 1 : 0; |
