fill in that little square that the scrollbars form

"corvid" <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <20121114042935.GA9253@local>
I don't know this drawing/damage code well enough to know whether this
is the best way to go about it, but it appears to work.

_______________________________________________
Dillo-dev mailing list
[email protected]
http://lists.auriga.wearlab.de/cgi-bin/mailman/listinfo/dillo-dev
scrollbars_square.diff (text/plain, 445 B)
diff -r a8b6a75c2abe dw/fltkviewport.cc
--- a/dw/fltkviewport.cc	Tue Nov 13 20:14:11 2012 +0100
+++ b/dw/fltkviewport.cc	Wed Nov 14 04:21:19 2012 +0000
@@ -216,6 +216,11 @@
       } else {
          draw_child (*hscrollbar);
          draw_child (*vscrollbar);
+
+         if (d == FL_DAMAGE_ALL && hdiff && vdiff) {
+            fl_color(FL_GRAY);
+            fl_rectf(x()+w()-hdiff, y()+h()-vdiff, hdiff, vdiff);
+         }
       }
    }
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.