small code cleanup
authorkramm <kramm>
Sun, 9 Dec 2007 17:00:47 +0000 (17:00 +0000)
committerkramm <kramm>
Sun, 9 Dec 2007 17:00:47 +0000 (17:00 +0000)
lib/pdf/GFXOutputDev.cc

index 91ecf07..b497db5 100644 (file)
@@ -1097,12 +1097,11 @@ void GFXOutputDev::startPage(int pageNum, GfxState *state, double crop_x1, doubl
     this->currentpage = pageNum;
     double x1,y1,x2,y2;
     int rot = doc->getPageRotate(1);
-    gfxcolor_t white;
+    gfxcolor_t white = {255,255,255,255};
+    gfxcolor_t black = {255,0,0,0};
     laststate = state;
     gfxline_t clippath[5];
 
-    white.r = white.g = white.b = white.a = 255;
-
     /* state->transform(state->getX1(),state->getY1(),&x1,&y1);
     state->transform(state->getX2(),state->getY2(),&x2,&y2);
     Use CropBox, not MediaBox, as page size