summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>1999-12-12 17:04:50 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>1999-12-12 17:04:50 +0000
commit6fc61407a31dc1ea2e00b803c7f6d355f278fb0d (patch)
treeb722c11a2e970392c326a258ebb82061bc739c9f /src
parentff06c837b5c743d2fe6cec4ca3474245861b699c (diff)
bitmaps were vertically shifted by one pixel
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/x11/xfonts.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/x11/xfonts.c b/src/mesa/drivers/x11/xfonts.c
index 2796b683df..e69f71224f 100644
--- a/src/mesa/drivers/x11/xfonts.c
+++ b/src/mesa/drivers/x11/xfonts.c
@@ -1,4 +1,4 @@
-/* $Id: xfonts.c,v 1.4 1999/11/28 20:11:56 brianp Exp $ */
+/* $Id: xfonts.c,v 1.5 1999/12/12 17:04:50 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -337,7 +337,8 @@ void Fake_glXUseXFont( Font font, int first, int count, int listbase )
width = ch->rbearing - ch->lbearing;
height = ch->ascent + ch->descent;
x0 = - ch->lbearing;
- y0 = ch->descent - 1;
+ y0 = ch->descent - 0; /* XXX used to subtract 1 here */
+ /* but that caused a conformace failure */
dx = ch->width;
dy = 0;