Commit 71fb15f8 authored by Krzysztof Kowalczyk's avatar Krzysztof Kowalczyk

Even less compiler warnings.

parent 7ba3f198
......@@ -592,7 +592,7 @@ static uint32_t luminocity(uint32_t x)
int r = (x >> 16) & 0xff;
int g = (x >> 8) & 0xff;
int b = (x >> 0) & 0xff;
int y = 0.3 * r + 0.59 * g + 0.11 * b;
int y = (int) (0.3 * r + 0.59 * g + 0.11 * b);
return y << 24;
}
......@@ -606,8 +606,8 @@ void CairoOutputDev::setSoftMask(GfxState * state, double * bbox, GBool alpha,
double x1, y1, x2, y2;
cairo_clip_extents(cairo, &x1, &y1, &x2, &y2);
int width = ceil(x2) - floor(x1);
int height = ceil(y2) - floor(y1);
int width = (int)(ceil(x2) - floor(x1));
int height = (int)(ceil(y2) - floor(y1));
cairo_surface_t *source = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, width, height);
cairo_t *maskCtx = cairo_create(source);
......
......@@ -339,6 +339,9 @@ QValueList<Link*> Page::links() const
m_refGen = r->gen;
copyString( m_uri, m->getTitle()->getCString() );
*/ break;
case actionSound:
/* TODO: write me */
break;
case actionUnknown:
break;
......
......@@ -59,6 +59,7 @@ static GooString* basename(GooString* str){
return new GooString(str);
}
#if 0
static GooString* Dirname(GooString* str){
char *p=str->getCString();
......@@ -68,6 +69,7 @@ static GooString* Dirname(GooString* str){
return new GooString(p,i+1);
return new GooString();
}
#endif
//------------------------------------------------------------------------
// HtmlString
......@@ -994,10 +996,9 @@ HtmlOutputDev::~HtmlOutputDev() {
delete pages;
}
void HtmlOutputDev::startPage(int pageNum, GfxState *state) {
/*if (mode&&!xml){
#if 0
if (mode&&!xml){
if (write){
write=gFalse;
GooString* fname=Dirname(Docname);
......@@ -1012,7 +1013,8 @@ void HtmlOutputDev::startPage(int pageNum, GfxState *state) {
// else
fprintf(tin,"ROTATE=%d neg %d neg translate\n",state->getX1(),state->getY1());
}
}*/
}
#endif
this->pageNum = pageNum;
GooString *str=basename(Docname);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment