Skip to content

Commit

Permalink
Improve debug messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed Sep 3, 2008
1 parent 6f89fef commit e1a5a48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pixbuf-renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2711,7 +2711,7 @@ static gint pr_queue_schedule_next_draw(PixbufRenderer *pr, gboolean force_set)
if (!pr->loading)
{
/* 2pass prio */
DEBUG_2("redraw priority 2pass\n");
DEBUG_2("redraw priority: 2pass");
pr->draw_idle_id = g_idle_add_full(G_PRIORITY_DEFAULT_IDLE, pr_queue_draw_idle_cb, pr, NULL);
return FALSE;
}
Expand All @@ -2729,21 +2729,21 @@ static gint pr_queue_schedule_next_draw(PixbufRenderer *pr, gboolean force_set)
if (percent > 10.0)
{
/* we have enough data for starting intensive redrawing */
DEBUG_2("redraw priority high %f\n", percent);
DEBUG_2("redraw priority: high %.2f %%", percent);
pr->draw_idle_id = g_idle_add_full(GDK_PRIORITY_REDRAW, pr_queue_draw_idle_cb, pr, NULL);
return FALSE;
}

if (percent < 1.0 || force_set)
{
/* queue is (almost) empty, wait 50 ms*/
DEBUG_2("redraw priority wait %f\n", percent);
DEBUG_2("redraw priority: wait %.2f %%", percent);
pr->draw_idle_id = g_timeout_add_full(G_PRIORITY_DEFAULT_IDLE, 50, pr_queue_draw_idle_cb, pr, NULL);
return FALSE;
}

/* keep the same priority as before */
DEBUG_2("redraw priority no change %f\n", percent);
DEBUG_2("redraw priority: no change %.2f %%", percent);
return TRUE;
}

Expand Down

0 comments on commit e1a5a48

Please sign in to comment.