From 091712bea8ff5aab89f0f8483ca572c118ca5715 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 22 Feb 2022 23:28:04 +0100 Subject: Fix default size_range() calculation (issue #392, STR 3352) --- src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H | 5 ++++- src/drivers/X11/Fl_X11_Window_Driver.cxx | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/drivers') diff --git a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H index 0cb61c25e..23a05be57 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H +++ b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H @@ -2,7 +2,7 @@ // Definition of Windows window driver // for the Fast Light Tool Kit (FLTK). // -// Copyright 2010-2018 by Bill Spitzak and others. +// Copyright 2010-2022 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -89,6 +89,9 @@ public: // --- window management virtual Fl_X *makeWindow(); + virtual void size_range() { + // currently nothing to do + } virtual void flush_double(); virtual void flush_overlay(); virtual void draw_begin(); diff --git a/src/drivers/X11/Fl_X11_Window_Driver.cxx b/src/drivers/X11/Fl_X11_Window_Driver.cxx index 1a98f78e3..9b5196358 100644 --- a/src/drivers/X11/Fl_X11_Window_Driver.cxx +++ b/src/drivers/X11/Fl_X11_Window_Driver.cxx @@ -423,7 +423,6 @@ void Fl_X11_Window_Driver::use_border() { } void Fl_X11_Window_Driver::size_range() { - Fl_Window_Driver::size_range(); if (shown()) sendxjunk(); } -- cgit v1.2.3