From 3cc12d203f30f29a8920b85ee98c46f4c9bb0bcb Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 24 Jul 2024 17:08:52 +0200 Subject: Fix Fl_Scalable_Graphics_Driver::rect(x,y,w,h) (#1017) --- src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx') diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx index 1b13ff0a9..4527ee920 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx @@ -61,6 +61,14 @@ void Fl_GDI_Graphics_Driver::focus_rect(int x, int y, int w, int h) { for (yy = h; yy > 0; yy--, i++) if (i & 1) SetPixel(gc_, x, y+yy, c); } +void Fl_GDI_Graphics_Driver::rect_unscaled(int x, int y, int w, int h) { + MoveToEx(fl_gc, x, y, 0L); + LineTo(fl_gc, x+w, y); + LineTo(fl_gc, x+w, y+h); + LineTo(fl_gc, x, y+h); + LineTo(fl_gc, x, y); +} + void Fl_GDI_Graphics_Driver::rectf_unscaled(int x, int y, int w, int h) { RECT rect; rect.left = x; rect.top = y; -- cgit v1.2.3