diff options
| author | Manolo Gouy <Manolo> | 2017-12-18 12:13:33 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-12-18 12:13:33 +0000 |
| commit | f24ee501b91354487a4b52f10bcf9ab192105b07 (patch) | |
| tree | 25316904354505c14cded014ffdcd6f38178998c /src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx | |
| parent | 3f9f4debbba0527658ce09044fbff90e332235cc (diff) | |
STR#3320 continued: make sure there's no undrawn space between nested rectangles and images.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12595 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx')
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx index c414393f9..435364160 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx @@ -104,25 +104,6 @@ void Fl_GDI_Graphics_Driver::xyline_unscaled(float x, float y, float x1) { //fprintf(LOG,"xyline_unscaled tw=%d s=%f gc_=%p\n",tw,scale_,gc_);fflush(LOG); } -void Fl_GDI_Graphics_Driver::xyline_unscaled(float x, float y, float x1, float y2) { - /*if (y2 < y) y2--; - else y2++; - MoveToEx(gc_, x, y, 0L); - LineTo(gc_, x1, y); - LineTo(gc_, x1, y2);*/ - xyline_unscaled(x, y, x1); - yxline_unscaled(x1, y, y2); -} - -void Fl_GDI_Graphics_Driver::xyline_unscaled(float x, float y, float x1, float y2, float x3) { - if(x3 < x1) x3--; - else x3++; - MoveToEx(gc_, x, y, 0L); - LineTo(gc_, x1, y); - LineTo(gc_, x1, y2); - LineTo(gc_, x3, y2); -} - void Fl_GDI_Graphics_Driver::yxline_unscaled(float x, float y, float y1) { if (y1 < y) { float exch = y; y = y1; y1 = exch;} int line_delta_ = (scale_ > 1.75 ? 1 : 0); @@ -140,25 +121,6 @@ void Fl_GDI_Graphics_Driver::yxline_unscaled(float x, float y, float y1) { } -void Fl_GDI_Graphics_Driver::yxline_unscaled(float x, float y, float y1, float x2) { - /*if (x2 > x) x2++; - else x2--; - MoveToEx(gc_, x, y, 0L); - LineTo(gc_, x, y1); - LineTo(gc_, x2, y1);*/ - yxline_unscaled(x, y, y1); - xyline_unscaled(x, y1, x2); -} - -void Fl_GDI_Graphics_Driver::yxline_unscaled(float x, float y, float y1, float x2, float y3) { - if(y3<y1) y3--; - else y3++; - MoveToEx(gc_, x, y, 0L); - LineTo(gc_, x, y1); - LineTo(gc_, x2, y1); - LineTo(gc_, x2, y3); -} - void Fl_GDI_Graphics_Driver::loop_unscaled(float x, float y, float x1, float y1, float x2, float y2) { MoveToEx(gc_, x, y, 0L); LineTo(gc_, x1, y1); |
