]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/PBMOutputDev.cc
Reused eog HIG dialog in GPdf.
[evince.git] / pdf / xpdf / PBMOutputDev.cc
index 57782447f993d87f7f015ad8310bbc5e9dd7e655..dde860a1e4b80f9540ebd84d53fbdf7af7276d5d 100644 (file)
@@ -2,15 +2,16 @@
 //
 // PBMOutputDev.cc
 //
-// Copyright 1998-2002 Glyph & Cog, LLC
+// Copyright 1998-2003 Glyph & Cog, LLC
 //
 //========================================================================
 
-#ifdef __GNUC__
+#include <aconf.h>
+
+#ifdef USE_GCC_PRAGMAS
 #pragma implementation
 #endif
 
-#include <aconf.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stddef.h>
@@ -82,10 +83,12 @@ void PBMOutputDev::killPBMOutputDev(PBMOutputDev *out) {
 PBMOutputDev::PBMOutputDev(Display *displayA, int screenA,
                           Pixmap pixmapA, Window dummyWinA,
                           int invertA, char *fileRootA):
-  XOutputDev(displayA, pixmapA, 1,
-            DefaultColormap(displayA, screenA), gFalse,
+  XOutputDev(displayA, screenA,
+            DefaultVisual(displayA, screenA),
+            DefaultColormap(displayA, screenA),
+            gFalse,
             WhitePixel(displayA, DefaultScreen(displayA)),
-            gFalse, 1)
+            gFalse, 1, 1)
 {
   display = displayA;
   screen = screenA;