Author: Adam Sampson <ats@offog.org>
Description: Remove incremental screen update support.
 Poppler 0.84 removed getModRegion, so we can't do this any more.
Forwarded: liftet from xpopple c2de4f3c68ed

--- a/xpdf/CoreOutputDev.cc
+++ b/xpdf/CoreOutputDev.cc
@@ -22,12 +22,10 @@
 
 CoreOutputDev::CoreOutputDev(SplashColorMode colorModeA, int bitmapRowPadA,
 			     GBool reverseVideoA, SplashColorPtr paperColorA,
-			     GBool incrementalUpdateA,
 			     CoreOutRedrawCbk redrawCbkA,
 			     void *redrawCbkDataA):
   SplashOutputDev(colorModeA, bitmapRowPadA, reverseVideoA, paperColorA)
 {
-  incrementalUpdate = incrementalUpdateA;
   redrawCbk = redrawCbkA;
   redrawCbkData = redrawCbkDataA;
 }
@@ -37,23 +35,10 @@
 
 void CoreOutputDev::endPage() {
   SplashOutputDev::endPage();
-  if (!incrementalUpdate) {
     (*redrawCbk)(redrawCbkData, 0, 0, getBitmapWidth(), getBitmapHeight(),
 		 gTrue);
-  }
 }
 
-void CoreOutputDev::dump() {
-  int x0, y0, x1, y1;
-
-  if (incrementalUpdate) {
-    getModRegion(&x0, &y0, &x1, &y1);
-    clearModRegion();
-    if (x1 >= x0 && y1 >= y0) {
-      (*redrawCbk)(redrawCbkData, x0, y0, x1, y1, gFalse);
-    }
-  }
-}
 
 void CoreOutputDev::clear() {
   startDoc(NULL);
--- a/xpdf/CoreOutputDev.h
+++ b/xpdf/CoreOutputDev.h
@@ -32,7 +32,6 @@
 
   CoreOutputDev(SplashColorMode colorModeA, int bitmapRowPadA,
 		GBool reverseVideoA, SplashColorPtr paperColorA,
-		GBool incrementalUpdateA,
 		CoreOutRedrawCbk redrawCbkA,
 		void *redrawCbkDataA);
 
@@ -43,9 +42,6 @@
   // End a page.
   virtual void endPage();
 
-  // Dump page contents to display.
-  virtual void dump();
-
   //----- special access
 
   // Clear out the document (used when displaying an empty window).
@@ -53,7 +49,6 @@
 
 private:
 
-  GBool incrementalUpdate;      // incrementally update the display?
   CoreOutRedrawCbk redrawCbk;
   void *redrawCbkData;
 };
--- a/xpdf/PDFCore.cc
+++ b/xpdf/PDFCore.cc
@@ -81,8 +81,7 @@
 //------------------------------------------------------------------------
 
 PDFCore::PDFCore(SplashColorMode colorModeA, int bitmapRowPadA,
-		 GBool reverseVideoA, SplashColorPtr paperColorA,
-		 GBool incrementalUpdate) {
+		 GBool reverseVideoA, SplashColorPtr paperColorA) {
   int i;
 
   doc = NULL;
@@ -118,7 +117,7 @@
 
   splashColorCopy(paperColor, paperColorA);
   out = new CoreOutputDev(colorModeA, bitmapRowPadA,
-			  reverseVideoA, paperColorA, incrementalUpdate,
+			  reverseVideoA, paperColorA,
 			  &redrawCbk, this);
   out->startDoc(NULL);
 }
--- a/xpdf/PDFCore.h
+++ b/xpdf/PDFCore.h
@@ -121,8 +121,7 @@
 public:
 
   PDFCore(SplashColorMode colorModeA, int bitmapRowPadA,
-	  GBool reverseVideoA, SplashColorPtr paperColorA,
-	  GBool incrementalUpdate);
+	  GBool reverseVideoA, SplashColorPtr paperColorA);
   virtual ~PDFCore();
 
   //----- loadFile / displayPage / displayDest
--- a/xpdf/XPDFCore.cc
+++ b/xpdf/XPDFCore.cc
@@ -94,7 +94,7 @@
 		   SplashColorPtr paperColorA, unsigned long paperPixelA,
 		   unsigned long mattePixelA, GBool fullScreenA, GBool reverseVideoA,
 		   GBool installCmap, int rgbCubeSizeA):
-  PDFCore(splashModeRGB8, 4, reverseVideoA, paperColorA, !fullScreenA)
+  PDFCore(splashModeRGB8, 4, reverseVideoA, paperColorA)
 {
   GString *initialZoom;
 
