summaryrefslogtreecommitdiff
path: root/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-09-19 11:10:52 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-09-19 11:10:52 +0200
commitb7e52bb03cfd2d47249019de9c39cadcad18f547 (patch)
tree0055b240f27d0fb2c849610a26432cd40b8d1c0d /src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx
parent9b56da5753c21d223971d653dce413ee751d752d (diff)
Underline does not appear in some fonts and scales (Windows,X11-noCairo) (#1308)
Diffstat (limited to 'src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx')
-rw-r--r--src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx
index 354957bb9..e901db971 100644
--- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx
+++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx
@@ -593,16 +593,6 @@ exit_error:
return;
} // fl_text_extents
-
-void Fl_GDI_Graphics_Driver::draw(const char *str, int n, int x, int y) {
- if (!size_ || !font_descriptor()) font(FL_HELVETICA, FL_NORMAL_SIZE);
- Fl_Region r2 = scale_clip(scale());
- int offset = (scale() == 1 ? 0 : -1); // for issue #1308
- draw_unscaled(str, n, floor(x), floor(y + offset));
- unscale_clip(r2);
-}
-
-
void Fl_GDI_Graphics_Driver::draw_unscaled(const char* str, int n, int x, int y) {
COLORREF oldColor = SetTextColor(gc_, fl_RGB());
// avoid crash if no font has been set yet