summaryrefslogtreecommitdiff
path: root/src/Fl_Graphics_Driver.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-02-27 08:18:01 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-02-27 08:18:01 +0100
commit88a3f7b7be1110e0d4a8587e48f4ad24fe527646 (patch)
tree2814389cecda21d4ecb85b70acda18e4f46370f4 /src/Fl_Graphics_Driver.cxx
parent5c1b69cd4fb35e55f78befa40af15391bfe067ea (diff)
Rename fl_remove_scale() to fl_override_scale() as discussed in fltk.general
Re: Can custom box type functions handle their own high-DPI screen scaling?
Diffstat (limited to 'src/Fl_Graphics_Driver.cxx')
-rw-r--r--src/Fl_Graphics_Driver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Graphics_Driver.cxx b/src/Fl_Graphics_Driver.cxx
index 00eaf5a15..43e754130 100644
--- a/src/Fl_Graphics_Driver.cxx
+++ b/src/Fl_Graphics_Driver.cxx
@@ -626,7 +626,7 @@ void Fl_Graphics_Driver::overlay_rect(int x, int y, int w , int h) {
loop(x, y, x+w-1, y, x+w-1, y+h-1, x, y+h-1);
}
-float Fl_Graphics_Driver::remove_scale() { return 1.f;}
+float Fl_Graphics_Driver::override_scale() { return scale();}
void Fl_Graphics_Driver::restore_scale(float) { }
@@ -979,7 +979,7 @@ void Fl_Scalable_Graphics_Driver::draw_image_mono_unscaled(Fl_Draw_Image_Cb cb,
void Fl_Scalable_Graphics_Driver::transformed_vertex0(float x, float y) {}
-float Fl_Scalable_Graphics_Driver::remove_scale() {
+float Fl_Scalable_Graphics_Driver::override_scale() {
float s = scale();
if (s != 1.f) {
push_no_clip();