diff options
| author | Manolo Gouy <Manolo> | 2016-03-30 20:16:40 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-03-30 20:16:40 +0000 |
| commit | d67f395031b0e9cfb266bf31a4a5e08a2d109e3b (patch) | |
| tree | 6a38b9180802e79b16af5de3ff031e6d739ac16c /src/Fl.cxx | |
| parent | 7799245100a91b10b9a4ca9c6e818a3cdd8d5dc9 (diff) | |
Rewrite functions XRectangleRegion(), XDestroyRegion() under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11479 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl.cxx')
| -rw-r--r-- | src/Fl.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index 05e8ba029..cb922858e 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -680,7 +680,7 @@ void Fl::flush() { if (!wi->visible_r()) continue; if (wi->damage()) {i->flush(); wi->clear_damage();} // destroy damage regions for windows that don't use them: - if (i->region) {XDestroyRegion(i->region); i->region = 0;} + if (i->region) {Fl_Graphics_Driver::XDestroyRegion(i->region); i->region = 0;} } } screen_driver()->flush(); @@ -1479,7 +1479,7 @@ void Fl_Widget::damage(uchar fl) { // damage entire window by deleting the region: Fl_X* i = Fl_X::i((Fl_Window*)this); if (!i) return; // window not mapped, so ignore it - if (i->region) {XDestroyRegion(i->region); i->region = 0;} + if (i->region) {Fl_Graphics_Driver::XDestroyRegion(i->region); i->region = 0;} damage_ |= fl; Fl::damage(FL_DAMAGE_CHILD); } @@ -1518,8 +1518,8 @@ void Fl_Widget::damage(uchar fl, int X, int Y, int W, int H) { wi->damage_ |= fl; } else { // create a new region: - if (i->region) XDestroyRegion(i->region); - i->region = XRectangleRegion(X,Y,W,H); + if (i->region) Fl_Graphics_Driver::XDestroyRegion(i->region); + i->region = Fl_Graphics_Driver::XRectangleRegion(X,Y,W,H); wi->damage_ = fl; } Fl::damage(FL_DAMAGE_CHILD); |
