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/gl_start.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/gl_start.cxx')
| -rw-r--r-- | src/gl_start.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gl_start.cxx b/src/gl_start.cxx index c897e97fa..9eaf36c05 100644 --- a/src/gl_start.cxx +++ b/src/gl_start.cxx @@ -56,8 +56,6 @@ static Fl_Gl_Choice* gl_choice; static Fl_Gl_Choice* gl_choice; #endif -Fl_Region XRectangleRegion(int x, int y, int w, int h); // in fl_rect.cxx - /** Creates an OpenGL context */ void gl_start() { if (!context) { @@ -91,7 +89,7 @@ void gl_start() { int x, y, w, h; if (fl_clip_box(0, 0, Fl_Window::current()->w(), Fl_Window::current()->h(), x, y, w, h)) { - fl_clip_region(XRectangleRegion(x,y,w,h)); + fl_clip_region(Fl_Graphics_Driver::XRectangleRegion(x,y,w,h)); glScissor(x, Fl_Window::current()->h()-(y+h), w, h); glEnable(GL_SCISSOR_TEST); } else { |
