summaryrefslogtreecommitdiff
path: root/fb/fbglyph.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-12-19 20:55:39 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-12-19 20:55:39 +0000
commit12e532010b9e8cb67bedd44d489c9c40dd265165 (patch)
treed680aac8b959e207f02d40069c6e6b5ab930f177 /fb/fbglyph.c
parent305c444de3baa863d7abc4221e8cebb973805847 (diff)
XFree86 4.3.99.902 (RC 2)
Diffstat (limited to 'fb/fbglyph.c')
-rw-r--r--fb/fbglyph.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/fb/fbglyph.c b/fb/fbglyph.c
index f8f2179d5..3ad8d2507 100644
--- a/fb/fbglyph.c
+++ b/fb/fbglyph.c
@@ -1,5 +1,5 @@
/*
- * $XFree86: xc/programs/Xserver/fb/fbglyph.c,v 1.12 2001/09/07 15:16:00 keithp Exp $
+ * $XFree86: xc/programs/Xserver/fb/fbglyph.c,v 1.13 2003/12/04 17:15:12 tsi Exp $
*
* Copyright © 1998 Keith Packard
*
@@ -25,6 +25,8 @@
#include "fb.h"
#include "fontstruct.h"
#include "dixfontstr.h"
+
+#define dummyScreen screenInfo.screens[0]
Bool
fbGlyphIn (RegionPtr pRegion,
@@ -34,7 +36,7 @@ fbGlyphIn (RegionPtr pRegion,
int height)
{
BoxRec box;
- BoxPtr pExtents = REGION_EXTENTS (0, pRegion);
+ BoxPtr pExtents = REGION_EXTENTS (dummyScreen, pRegion);
/*
* Check extents by hand to avoid 16 bit overflows
@@ -51,7 +53,7 @@ fbGlyphIn (RegionPtr pRegion,
box.x2 = x + width;
box.y1 = y;
box.y2 = y + height;
- return RECT_IN_REGION (0, pRegion, &box) == rgnIN;
+ return RECT_IN_REGION (dummyScreen, pRegion, &box) == rgnIN;
}
#ifdef FB_24BIT