summaryrefslogtreecommitdiff
path: root/mi/mipoly.c
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2010-07-14 08:29:26 -0700
committerJamey Sharp <jamey@minilop.net>2011-12-14 18:38:44 -0800
commit90746a9e9fd8c931cb226843d661170f8a5463b1 (patch)
treeb2e8718e101bbd924023fc4f2ccbf595b438d52b /mi/mipoly.c
parent5a70cf630b8777a665363c7efc8861137109d6fc (diff)
Move GC->miTranslate flag to ScreenRec.miTranslate
No DDX uses the ability to set this flag differently on different GCs. When it's set at all, it was unconditionally set to true in a CreateGC hook. Since CreateGC hooks are per-screen, just put the flag on the screen instead. fb sets miTranslate, so almost everything wants GC ops to be handed screen-relative coordinates, but I can't easily prove that *everything* uses fb. If the xfree86 driver API changed to unconditionally initialize fb then it would be safe to delete the miTranslate flag outright. Signed-off-by: Jamey Sharp <jamey@minilop.net>
Diffstat (limited to 'mi/mipoly.c')
-rw-r--r--mi/mipoly.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mi/mipoly.c b/mi/mipoly.c
index b3e2c2fb1..974cf959c 100644
--- a/mi/mipoly.c
+++ b/mi/mipoly.c
@@ -50,7 +50,7 @@ SOFTWARE.
* Written by Brian Kelleher; June 1986
*
* Draw polygons. This routine translates the point by the
- * origin if pGC->miTranslate is non-zero, and calls
+ * origin if pGC->pScreen->miTranslate is non-zero, and calls
* to the appropriate routine to actually scan convert the
* polygon.
*/
@@ -64,6 +64,7 @@ SOFTWARE.
#include "pixmapstr.h"
#include "mi.h"
#include "regionstr.h"
+#include "scrnintstr.h"
void
@@ -79,7 +80,7 @@ miFillPolygon( DrawablePtr dst, GCPtr pgc,
return;
ppt = pPts;
- if (pgc->miTranslate)
+ if (pgc->pScreen->miTranslate)
{
xorg = dst->x;
yorg = dst->y;