summaryrefslogtreecommitdiff
path: root/src/drv/cdgl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drv/cdgl.c')
-rw-r--r--src/drv/cdgl.c27
1 files changed, 18 insertions, 9 deletions
diff --git a/src/drv/cdgl.c b/src/drv/cdgl.c
index 2934684..94b1367 100644
--- a/src/drv/cdgl.c
+++ b/src/drv/cdgl.c
@@ -262,6 +262,22 @@ static int cdinteriorstyle(cdCtxCanvas *ctxcanvas, int style)
return style;
}
+static void cdpattern(cdCtxCanvas *ctxcanvas, int n, int m, const long int *pattern)
+{
+ (void)pattern;
+ (void)m;
+ (void)n;
+ cdinteriorstyle(ctxcanvas, CD_SOLID);
+}
+
+static void cdstipple(cdCtxCanvas *ctxcanvas, int n, int m, const unsigned char *stipple)
+{
+ (void)stipple;
+ (void)m;
+ (void)n;
+ cdinteriorstyle(ctxcanvas, CD_SOLID);
+}
+
static int cdlinestyle(cdCtxCanvas *ctxcanvas, int style)
{
switch (style)
@@ -314,14 +330,6 @@ static int cdlinewidth(cdCtxCanvas *ctxcanvas, int width)
return width;
}
-static int cdbackopacity(cdCtxCanvas *ctxcanvas, int opaque)
-{
- ctxcanvas->canvas->back_opacity = opaque;
- cdinteriorstyle(ctxcanvas, ctxcanvas->canvas->interior_style);
- cdlinestyle(ctxcanvas, ctxcanvas->canvas->line_style);
- return opaque;
-}
-
/***********************************************************************************/
/* Functions to get the font name path */
/* Base source = https://www.h3dapi.org:8090/H3DAPI/trunk/H3DAPI/src/FontStyle.cpp */
@@ -1443,9 +1451,10 @@ static void cdinittable(cdCanvas* canvas)
canvas->cxWriteMode = cdwritemode;
canvas->cxLineStyle = cdlinestyle;
canvas->cxLineWidth = cdlinewidth;
- canvas->cxBackOpacity = cdbackopacity;
canvas->cxInteriorStyle = cdinteriorstyle;
canvas->cxHatch = cdhatch;
+ canvas->cxStipple = cdstipple;
+ canvas->cxPattern = cdpattern;
canvas->cxForeground = cdforeground;
canvas->cxTransform = cdtransform;