diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-29 12:28:37 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-29 12:28:37 +0100 |
commit | c56560c2ac0e4a7ce61bb987b941f7ac60e666a7 (patch) | |
tree | f3fde921051f2fedff593e1340265a8d2b825af0 /framebuffer | |
parent | a1eb1dec7341a22b04317b60f8ef82b95d742bb1 (diff) | |
download | netsurf-c56560c2ac0e4a7ce61bb987b941f7ac60e666a7.tar.gz netsurf-c56560c2ac0e4a7ce61bb987b941f7ac60e666a7.tar.bz2 |
Suppress most fbtk logging when FBTK_LOGGING is unset.
Diffstat (limited to 'framebuffer')
-rw-r--r-- | framebuffer/fbtk/fbtk.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/framebuffer/fbtk/fbtk.c b/framebuffer/fbtk/fbtk.c index 817d6f522..1ee3b4d73 100644 --- a/framebuffer/fbtk/fbtk.c +++ b/framebuffer/fbtk/fbtk.c @@ -100,12 +100,14 @@ fbtk_request_redraw(fbtk_widget_t *widget) widget->redraw.width = widget->width; widget->redraw.height = widget->height; +#ifdef FBTK_LOGGING LOG(("redrawing %p %d,%d %d,%d", widget, widget->redraw.x, widget->redraw.y, widget->redraw.width, widget->redraw.height)); +#endif cwidget = widget->last_child; while (cwidget != NULL) { @@ -534,7 +536,9 @@ fbtk_widget_new(fbtk_widget_t *parent, if (neww == NULL) return NULL; +#ifdef FBTK_LOGGING LOG(("creating %p %d,%d %d,%d", neww, x, y, width, height)); +#endif /* make new window fit inside parent */ if (width == 0) { @@ -555,8 +559,9 @@ fbtk_widget_new(fbtk_widget_t *parent, height = parent->height - y; } - +#ifdef FBTK_LOGGING LOG(("using %p %d,%d %d,%d", neww, x, y, width, height)); +#endif /* set values */ neww->type = type; neww->x = x; @@ -614,9 +619,11 @@ do_redraw(nsfb_t *nsfb, fbtk_widget_t *widget) plot_ctx.x1 = plot_ctx.x0 + widget->redraw.width; plot_ctx.y1 = plot_ctx.y0 + widget->redraw.height; +#ifdef FBTK_LOGGING LOG(("clipping %p %d,%d %d,%d", widget, plot_ctx.x0, plot_ctx.y0, plot_ctx.x1, plot_ctx.y1)); +#endif if (nsfb_plot_set_clip(nsfb, &plot_ctx) == true) { fbtk_post_callback(widget, FBTK_CBT_REDRAW); } |