confined unprofessional print to debug mode ;)

This commit is contained in:
Campbell Barton
2008-05-12 20:59:46 +00:00
parent 4903751c4d
commit a0cd3d67ed

View File

@@ -938,8 +938,8 @@ static void icon_draw_rect(float x, float y, int w, int h, float aspect, int rw,
{
ui_rasterpos_safe(x, y, aspect);
if(w<1 || h<1) {
printf("what the heck!\n");
if((w<1 || h<1) && G.f & G_DEBUG) {
printf("what the heck! - icons are %i x %i zero pixels?\n", w, h);
}
/* rect contains image in 'rendersize', we only scale if needed */
else if(rw!=w && rh!=h) {