From 880636eb120d18a2197b35839105a1aed5c71111 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 4 Mar 2025 16:04:10 +0100 Subject: Fix "Windows: dotted lines may be drawn solid when GUI is rescaled" (#1214) --- src/drivers/GDI/Fl_GDI_Graphics_Driver.H | 1 - src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx | 1 - src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx | 1 - 3 files changed, 3 deletions(-) (limited to 'src/drivers/GDI') diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.H b/src/drivers/GDI/Fl_GDI_Graphics_Driver.H index c3449f1c9..01ecf9531 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.H +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.H @@ -60,7 +60,6 @@ protected: uchar *mask_bitmap_; uchar **mask_bitmap() FL_OVERRIDE {return &mask_bitmap_;} POINT *long_point; - bool is_solid_; int style_; public: Fl_GDI_Graphics_Driver(); diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx index bebe6d4e9..97b3244d1 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx @@ -96,7 +96,6 @@ Fl_GDI_Graphics_Driver::Fl_GDI_Graphics_Driver() { long_point = NULL; depth = -1; origins = NULL; - is_solid_ = true; style_ = FL_SOLID; } diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx index 8b2eb47fb..9d086f353 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx @@ -58,7 +58,6 @@ void Fl_GDI_Graphics_Driver::line_style_unscaled(int style, int width, char* das DeleteObject(oldpen); DeleteObject(fl_current_xmap->pen); fl_current_xmap->pen = newpen; - is_solid_ = ((style & 0xff) == FL_SOLID && (!dashes || !*dashes)); style_ = style; } -- cgit v1.2.3