summaryrefslogtreecommitdiff
path: root/mi/mizerarc.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/mizerarc.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/mizerarc.c')
-rw-r--r--mi/mizerarc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mi/mizerarc.c b/mi/mizerarc.c
index 5adf3dd09..d01d05007 100644
--- a/mi/mizerarc.c
+++ b/mi/mizerarc.c
@@ -45,6 +45,7 @@ Author: Bob Scheifler, MIT X Consortium
#include "pixmapstr.h"
#include "mi.h"
#include "mizerarc.h"
+#include "scrnintstr.h"
#define FULLCIRCLE (360 * 64)
#define OCTANT (45 * 64)
@@ -788,7 +789,7 @@ miZeroPolyArc(DrawablePtr pDraw, GCPtr pGC, int narcs, xArc *parcs)
while (maxw < n)
widths[maxw++] = 1;
}
- if (pGC->miTranslate)
+ if (pGC->pScreen->miTranslate)
{
for (pt = points; pt != pts; pt++)
{
@@ -820,7 +821,7 @@ miZeroPolyArc(DrawablePtr pDraw, GCPtr pGC, int narcs, xArc *parcs)
while (maxw < n)
widths[maxw++] = 1;
}
- if (pGC->miTranslate)
+ if (pGC->pScreen->miTranslate)
{
for (pt = oddPts; pt != pts; pt++)
{