diff options
| author | Manolo Gouy <Manolo> | 2017-07-07 08:09:31 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-07-07 08:09:31 +0000 |
| commit | 90f2bba62bcabe604d358b68795cdc365b5bce80 (patch) | |
| tree | c51e199dabaa920ebc6dcc4800204b91efe3867c /src/drivers/GDI | |
| parent | 9d024ceb7ea340d2d140939e83f6c78846fbdc5c (diff) | |
Fix Fl_GDI_Graphics_Driver::point_unscaled() so points are also enlarged when scaling increases.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/GDI')
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx index c6d6b3d04..c414393f9 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx @@ -35,8 +35,12 @@ // --- line and polygon drawing with integer coordinates -void Fl_GDI_Graphics_Driver::point_unscaled(float x, float y) { - SetPixel(gc_, x, y, fl_RGB()); +void Fl_GDI_Graphics_Driver::point_unscaled(float fx, float fy) { + int width = scale_ >= 1 ? scale_ : 1; + RECT rect; + rect.left = fx; rect.top = fy; + rect.right = fx + width; rect.bottom = fy + width; + FillRect(gc_, &rect, fl_brush()); } void Fl_GDI_Graphics_Driver::rect_unscaled(float x, float y, float w, float h) { |
