Histogram and Navigator now handle Hi-DPI.

+ widgets are now sized depending on Hi-DPI
see issue #3547
This commit is contained in:
Hombre
2019-01-04 15:32:35 +01:00
parent 92ed81a1fe
commit 97824da6de
9 changed files with 103 additions and 86 deletions

View File

@@ -759,14 +759,14 @@ Gtk::SizeRequestMode ImageArea::get_request_mode_vfunc () const
void ImageArea::get_preferred_height_vfunc (int &minimum_height, int &natural_height) const
{
minimum_height= 50;
natural_height = 300;
minimum_height= 50 * RTScalable::getScale();
natural_height = 300 * RTScalable::getScale();
}
void ImageArea::get_preferred_width_vfunc (int &minimum_width, int &natural_width) const
{
minimum_width = 100;
natural_width = 400;
minimum_width = 100 * RTScalable::getScale();
natural_width = 400 * RTScalable::getScale();
}
void ImageArea::get_preferred_height_for_width_vfunc (int width, int &minimum_height, int &natural_height) const