drawing areas with negative coordinates

"corvid" <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <20130109172325.GA32231@local>
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 ()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.