[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/graphics/okular/generators/djvu
From: Pino Toscano <toscano.pino () tiscali ! it>
Date: 2006-07-08 17:51:26
Message-ID: 1152381086.919445.13436.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 559952 by pino:
now that KDjVu works nicely, reduce the debug
M +10 -0 kdjvu.cpp
--- trunk/playground/graphics/okular/generators/djvu/kdjvu.cpp #559951:559952
@@ -31,6 +31,7 @@
static void which_ddjvu_message( const ddjvu_message_t *msg )
{
+#ifdef KDJVU_DEBUG
kDebug() << "which_djvu_message(...): " << msg->m_any.tag << endl;
switch( msg->m_any.tag )
{
@@ -47,6 +48,9 @@
break;
default: ;
}
+#else
+ Q_UNUSED( msg );
+#endif
}
/**
@@ -223,18 +227,24 @@
int realheight = qMin( height - renderrect.y, ydelta );
renderrect.w = realwidth;
renderrect.h = realheight;
+#ifdef KDJVU_DEBUG
kDebug() << "renderrect: " << renderrect << endl;
+#endif
ddjvu_rect_t pagerect;
pagerect.x = 0;
pagerect.y = 0;
pagerect.w = width;
pagerect.h = height;
+#ifdef KDJVU_DEBUG
kDebug() << "pagerect: " << pagerect << endl;
+#endif
handle_ddjvu_messages( m_djvu_cxt, false );
char* imagebuffer = new char[ realwidth * realheight * 4 + 1 ];
res = ddjvu_page_render( djvupage, DDJVU_RENDER_COLOR,
&pagerect, &renderrect, m_format, realwidth * 4, imagebuffer );
+#ifdef KDJVU_DEBUG
kDebug() << "rendering result: " << res << endl;
+#endif
handle_ddjvu_messages( m_djvu_cxt, false );
QPixmap pix;
if ( res )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic