summaryrefslogtreecommitdiff
path: root/fb/fbglyph.c
diff options
context:
space:
mode:
Diffstat (limited to 'fb/fbglyph.c')
-rw-r--r--fb/fbglyph.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/fb/fbglyph.c b/fb/fbglyph.c
index f8f2179d5..9f61b6bec 100644
--- a/fb/fbglyph.c
+++ b/fb/fbglyph.c
@@ -1,5 +1,6 @@
/*
- * $XFree86: xc/programs/Xserver/fb/fbglyph.c,v 1.12 2001/09/07 15:16:00 keithp Exp $
+ * $XdotOrg: xc/programs/Xserver/fb/fbglyph.c,v 1.13 2003/12/04 17:15:12 tsi 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 +26,8 @@
#include "fb.h"
#include "fontstruct.h"
#include "dixfontstr.h"
+
+#define dummyScreen screenInfo.screens[0]
Bool
fbGlyphIn (RegionPtr pRegion,
@@ -34,7 +37,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 +54,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