adapted flash halfpixel bitmap fix to multiply values !=1
[swftools.git] / lib / pdf / GFXOutputDev.h
index 51e6312..1b1c0b2 100644 (file)
@@ -29,14 +29,9 @@ class GFXOutputState {
     gfxresult_t* softmaskrecording; // for soft masks
 
     gfxdevice_t* olddevice;
-};
 
-typedef struct _parameter
-{
-    char*name;
-    char*value;
-    struct _parameter*next;
-} parameter_t;
+    GfxState*state;
+};
 
 typedef struct _feature
 {
@@ -86,6 +81,7 @@ public:
 
   //----- update graphics state
 
+  virtual void updateLineDash(GfxState *state);
   virtual void updateFont(GfxState *state);
   virtual void updateFontMatrix(GfxState *state);
   virtual void updateFillColor(GfxState *state);
@@ -213,11 +209,13 @@ public:
                                   int width, int height, GfxImageColorMap*colorMap, GBool invert,
                                   GBool inlineImg, int mask, int *maskColors,
                                   Stream *maskStr, int maskWidth, int maskHeight, GBool maskInvert, GfxImageColorMap*maskColorMap);
-  int setGfxFont(char*id, char*name, char*filename, double maxSize, CharCodeToUnicode*ctu);
+
   void strokeGfxline(GfxState *state, gfxline_t*line, int flags);
   void clipToGfxLine(GfxState *state, gfxline_t*line);
   void fillGfxLine(GfxState *state, gfxline_t*line);
 
+  gfxfont_t* createGfxFont(GfxFont*xpdffont, FontInfo*src);
+
   void showfeature(const char*feature,char fully, char warn);
   void warnfeature(const char*feature,char fully);
   void infofeature(const char*feature);
@@ -285,9 +283,13 @@ public:
   int config_extrafontdata;
   int config_convertgradients;
   int config_optimize_polygons;
+  int config_multiply;
+  int config_bigchar;
   double config_fontquality;
-
-  parameter_t*parameters;
+    
+  double *dashPattern;
+  int dashLength;
+  double dashStart;
 };
 
 class GFXGlobalParams:  public GlobalParams {