From 90f2bba62bcabe604d358b68795cdc365b5bce80 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 7 Jul 2017 08:09:31 +0000 Subject: [PATCH] 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 --- src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx | 8 ++++++-- 1 file 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) {