Adding HiDPI support (WIP)

This commit is contained in:
Hombre
2018-10-25 20:22:33 +02:00
parent c34bd31765
commit 4eb8a8f70c
1213 changed files with 875 additions and 379 deletions

View File

@@ -657,6 +657,14 @@ void ThumbBrowserBase::enableInspector()
}
}
bool ThumbBrowserBase::Internal::on_configure_event(GdkEventConfigure *configure_event)
{
double resolution = get_window()->get_screen()->get_resolution();
printf("ThumbBrowserBase::Internal::on_configure_event / Scale:%d StyleScale:%d X:%d Y:%d W:%d H:%d / DPI: %.3f\n",
get_scale_factor(), get_style_context()->get_scale(), configure_event->x, configure_event->y, configure_event->width, configure_event->height, (float)resolution);
return true;
}
void ThumbBrowserBase::Internal::on_style_updated()
{
style = get_style_context ();