diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-12-02 17:46:49 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-12-02 17:46:49 +0100 |
| commit | 981aa8c2e7b519accfb42c9690dd04fb404122c5 (patch) | |
| tree | ef40abccff6f7921f6748cea5a6eafda9814b1a8 /src/drivers/Cairo | |
| parent | 9a7f4bdfcebe04ff85e75d9fc999b3731c9941e4 (diff) | |
Fix: Drawing bugs on Windows at very large scales (#1144)
Diffstat (limited to 'src/drivers/Cairo')
| -rw-r--r-- | src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx index cf334b2ad..236a677b1 100644 --- a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx +++ b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx @@ -1493,7 +1493,8 @@ char Fl_Cairo_Graphics_Driver::can_do_alpha_blending() { float Fl_Cairo_Graphics_Driver::override_scale() { float s = scale(); if (s != 1.f && Fl_Display_Device::display_device()->is_current()) { - scale(1); + cairo_scale(cairo_, 1./s, 1./s); + Fl_Graphics_Driver::scale(1); } return s; } @@ -1501,7 +1502,8 @@ float Fl_Cairo_Graphics_Driver::override_scale() { void Fl_Cairo_Graphics_Driver::restore_scale(float s) { if (s != 1.f && Fl_Display_Device::display_device()->is_current()) { - scale(s); + cairo_scale(cairo_, s, s); + Fl_Graphics_Driver::scale(s); } } |
