Discussion:
drawing areas with negative coordinates
corvid
2013-01-09 17:23:25 UTC
Permalink
Just something I noticed. There aren't an overwhelming number of them,
so it seems like...not too big of a deal. I have the impression that it
generally means that something is being drawn while an allocation
somewhere is still (-1, -1, 1, 1).


diff -r 35fb41bd0cdb dw/fltkviewbase.cc
--- a/dw/fltkviewbase.cc Wed Jan 09 16:40:25 2013 +0000
+++ b/dw/fltkviewbase.cc Wed Jan 09 17:17:36 2013 +0000
@@ -431,8 +431,14 @@

void FltkViewBase::queueDraw (core::Rectangle *area)
{
- drawRegion.addRectangle (area);
- damage (FL_DAMAGE_USER1);
+ static int counter = 0;
+ if (area->y < 0) {
+ MSG("%d let's not draw (%d,%d) w %d h %d\n", counter++, area->x, area->y,
+ area->width, area->height);
+ } else {
+ drawRegion.addRectangle (area);
+ damage (FL_DAMAGE_USER1);
+ }
}

void FltkViewBase::queueDrawTotal ()

Loading...