summaryrefslogtreecommitdiff
path: root/mi/mi.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-05-07 09:56:39 -0700
committerEric Anholt <eric@anholt.net>2014-06-12 22:52:47 -0700
commitbf1429b2034a577c994ff16b60d809d05ca99241 (patch)
treef52f56882fb1c0fef16edd9c1f7514ed33ecc1ea /mi/mi.h
parent14d82a2bc3179160803c62c20746630d14e1b7d7 (diff)
mi: Create miPolylines as a general-purpose line drawing function
Instead of requiring all drivers to figure out which mi function to call for each of the four cases, create a single wrapper in mi that handles them correctly. Now drivers can simply use miPolylines in all cases. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'mi/mi.h')
-rw-r--r--mi/mi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mi/mi.h b/mi/mi.h
index 1209a16c4..b8a4f0568 100644
--- a/mi/mi.h
+++ b/mi/mi.h
@@ -452,6 +452,12 @@ extern _X_EXPORT void miWideDash(DrawablePtr /*pDrawable */ ,
DDXPointPtr /*pPts */
);
+extern _X_EXPORT void miPolylines(DrawablePtr pDrawable,
+ GCPtr pGC,
+ int mode,
+ int npt,
+ DDXPointPtr pPts);
+
/* miwindow.c */
extern _X_EXPORT void miClearToBackground(WindowPtr /*pWin */ ,