diff options
Diffstat (limited to 'src/drivers/Xlib/Fl_Xlib_Graphics_Driver_rect.cxx')
| -rw-r--r-- | src/drivers/Xlib/Fl_Xlib_Graphics_Driver_rect.cxx | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_rect.cxx b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_rect.cxx index 1080bd360..7ba5490b5 100644 --- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_rect.cxx +++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver_rect.cxx @@ -188,26 +188,6 @@ int Fl_Xlib_Graphics_Driver::clip_rect(int &x, int &y, int &w, int &h) { return 0; } -/* - clip_xy() returns a single coordinate value clipped to the 16-bit - coordinate space. - - This can be used to draw horizontal and vertical lines that can be - handled by X. Each single coordinate value can be clipped individually - and the result can be used directly, e.g. in fl_xyline() and fl_yxline(). - - Note 1: this can't be used for arbitrary lines (neither horizontal nor vertical). - Note 2: may be changed since Fl_Xlib_Graphics_Driver::clip_line() exists. -*/ - -int Fl_Xlib_Graphics_Driver::clip_xy(int x) { - - if (x < clip_min()) - x = clip_min(); - else if (x > clip_max()) - x = clip_max(); - return x; -} // Missing X call: (is this the fastest way to init a 1-rectangle region?) // Windows equivalent exists, implemented inline in win32.H |
