From 3d35a30ecfaf2e8af42488c879066cd58d13b529 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 12 Apr 2013 22:13:57 +0200 Subject: [PATCH] CComponentsPicture: add debug output --- src/gui/components/cc_item_picture.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/components/cc_item_picture.cpp b/src/gui/components/cc_item_picture.cpp index cd5f8ebf0..215039324 100644 --- a/src/gui/components/cc_item_picture.cpp +++ b/src/gui/components/cc_item_picture.cpp @@ -172,7 +172,11 @@ void CComponentsPicture::paint(bool do_save_bg) initVarPicture(); paintInit(do_save_bg); pic_painted = false; - + +#ifdef DEBUG_CC + printf(" [CComponentsPicture] %s: paint image: %s (do_paint=%d)\n", __FUNCTION__, pic_name.c_str(), do_paint); +#endif + if (do_paint){ if (pic_paint_mode == CC_PIC_IMAGE_MODE_OFF) pic_painted = frameBuffer->paintIcon(pic_name, pic_x, pic_y, 0 /*pic_max_h*/, pic_offset, pic_paint, pic_paintBg, col_body);