diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-07-30 17:41:22 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-07-30 17:41:35 +0200 |
| commit | 889acc7d74a8d5c79d4016900294246a9b04b9c2 (patch) | |
| tree | c261b240934887ba2f720c8c3fe08b9dab301f16 /src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx | |
| parent | f9bdb5a4db18a6641ba9d78d348fb521750a0fde (diff) | |
Fix use of an SVG image in Fl_Tiled_Image when display is rescaled.
Diffstat (limited to 'src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx')
| -rw-r--r-- | src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx index 4ea518c9a..f8fab114e 100644 --- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx +++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx @@ -153,3 +153,8 @@ void Fl_Quartz_Graphics_Driver::XDestroyRegion(Fl_Region r) { free(r); } } + +void Fl_Quartz_Graphics_Driver::cache_size(int &width, int &height) { + width *= 2 * scale(); + height *= 2 * scale(); +} |
