summaryrefslogtreecommitdiffstats
path: root/lib/libvgl/simple.c
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1999-08-22 03:31:13 +0000
committeryokota <yokota@FreeBSD.org>1999-08-22 03:31:13 +0000
commitc8009b220af073b794203725b85b11aa0443d8e8 (patch)
treef6b8b068a9da5917506b6d43dd5669f28d8ddadd /lib/libvgl/simple.c
parent36ba7111cd3c5db33f5ff2f2f35460d42a9d0f89 (diff)
downloadFreeBSD-src-c8009b220af073b794203725b85b11aa0443d8e8.zip
FreeBSD-src-c8009b220af073b794203725b85b11aa0443d8e8.tar.gz
Assorted bug fixes.
keyboard.c - Call tcsetattr() in VGLKeyboardEnd() to restore tty, only when tty attributes have been previously saved. PR: misc/9524 Submitted by: Katusyuki 'kei' Maeda (kei@nanet.co.jp) - Set up the tty raw mode correctly. main.c - Restore VESA_800x600 raster text mode correctly in VGLEnd(). Submitted by: des text.c - Allocate the correct size of a font buffer in VGLSetFontFile(). I forgot the submitter ;-( simple.c, bitmap.c - Fix address calculation for the VGA mode X in VGLGetXY() and VGLBitmapCopy(). - Fix typo (dsty -> dstx) in __VGLBitmapCopy(). Reviewed by: sos
Diffstat (limited to 'lib/libvgl/simple.c')
-rw-r--r--lib/libvgl/simple.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libvgl/simple.c b/lib/libvgl/simple.c
index 2b966e5..9cef00f 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;
OpenPOWER on IntegriCloud