summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx8
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) {