+
+#ifdef USE_WATERMARK
+
+ // Insert Alpha watermark to avoid printing
+
+ tag = swf_InsertTag(tag,ST_DEFINESHAPE3);
+ swf_ShapeNew(&s);
+ rgb.r = rgb.g = rgb.b = 0xff;
+ rgb.a = 0x08;
+ fs1 = swf_ShapeAddSolidFillStyle(s,&rgb);
+ swf_SetU16(tag,ID_WATERMARK);
+ r.xmin = r.ymin = 0;
+ r.xmax = 20*width;
+ r.ymax = 20*height;
+ swf_SetRect(tag,&r); // cover whole viewport
+ swf_SetShapeHeader(tag,s);
+ swf_ShapeSetAll(tag,s,0,0,0,fs1,0);
+ swf_ShapeSetLine(tag,s,20*width,0);
+ swf_ShapeSetLine(tag,s,0,20*height);
+ swf_ShapeSetLine(tag,s,-20*width,0);
+ swf_ShapeSetLine(tag,s,0,-20*height);
+ swf_ShapeSetEnd(tag);
+ swf_ShapeFree(s);
+
+#endif // USE_WATERMARK