From: kramm Date: Sun, 9 Dec 2007 17:00:47 +0000 (+0000) Subject: small code cleanup X-Git-Tag: buttons-working~467 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=95d04eff5714c6b79dd865ca297be70cf037fee8 small code cleanup --- diff --git a/lib/pdf/GFXOutputDev.cc b/lib/pdf/GFXOutputDev.cc index 91ecf07..b497db5 100644 --- a/lib/pdf/GFXOutputDev.cc +++ b/lib/pdf/GFXOutputDev.cc @@ -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