Bug 35870 - HiDpi support
Summary: HiDpi support
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: PC Linux
: --- normal
Target Milestone: master
Assignee: Cody Russell
Depends on:
Reported: 2015-11-15 08:03 UTC by bartosz.soja
Modified: 2016-09-04 04:06 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

monodevelop hidpi (449.01 KB, image/png)
2015-11-15 08:03 UTC, bartosz.soja

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description bartosz.soja 2015-11-15 08:03:51 UTC
Created attachment 13814 [details]
monodevelop hidpi

Monodevelop is not properly scaled on HiDpi screen. I have UX303LN laptop with 1920x1080 resolution and 13 inches screen size, running latest KDE and some UI elements are too small. Attached screenshot should describe that more than words. I tried to resolve this problem and when I modify method "Mono.TextEditor.GtkWorkarounds.GetPixelScale()" to return hardcoded value 1.4d, UI looks fine - is properly scaled. Attached screenshot contains on top version with hardcoded pixel scale to 1.4d and underneath original version without my modification.
Comment 1 bartosz.soja 2015-11-15 08:09:03 UTC
My environment:
Kubuntu 15.10
MonoDevelop -latest from GIT
Comment 2 Cody Russell 2016-04-20 20:44:16 UTC
This isn't something that we can really fix in monodevelop itself. On Mac and Windows we ship our own version of gtk, but on Linux this isn't an option.

If we switch to gtk3 at some point then we'll get support for this from that, but I don't think it's a feature that will ever be backported to gtk2.
Comment 3 cesar 2016-09-04 04:06:44 UTC
I think the original poster shows that this is a bug in monodevelop, as changing the "Mono.TextEditor.GtkWorkarounds.GetPixelScale()" function worked (not anymore, since it's commented out and not used anymore).

This is still an issue and the current code seems to be using gtk3 to determine the scaling factor and in every other gtk3 app this works as expected.