diff options
author | Keith Packard <keithp@keithp.com> | 2014-05-07 09:56:39 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-06-12 22:52:47 -0700 |
commit | bf1429b2034a577c994ff16b60d809d05ca99241 (patch) | |
tree | f52f56882fb1c0fef16edd9c1f7514ed33ecc1ea /mi/mi.h | |
parent | 14d82a2bc3179160803c62c20746630d14e1b7d7 (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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 */ , |