[Spice-devel] Blurry spice-widget

Jason A. Donenfeld Jason at zx2c4.com
Wed Dec 21 01:57:17 UTC 2016


Hi folks,

Since spicy is gtk3, it supports HiDPI scaling of widgets, which is
great. The menus and icons are all in beautiful proportion, scaled up
2x, since I'm on a 192-dpi screen. Yay.

However, the spice-widget.c view of the Windows 10 VM, which is
showing what's essentially a bitmap stream, is also scaled 2x. Scaling
a bitmap 2x makes everything look blurry and awful. The solution is
for spice-widget.c *not* to scale up 2x. This widget should always be
at 1x.

Example: my 15 inch laptop screen has a resolution of 3840x2160. All
icons and menus of Gtk programs are correctly scaled at 2x. At full
screen, when the spice-widget view is scaled at 2x, it reports to
Windows 10 over spice that it only is 1920x1080. Windows 10 renders as
such. Then this 1920x1080 view is scaled up by 2x. This is incorrect
behavior. The correct behavior would be for the spice-widget to render
at 1x, and at full screen to report to Windows 10 that it is
3840x2160, and then scale the Windows 10 view by 1x (no scaling).

Is this something that might be possible? Otherwise, spice-gtk won't
be suitable for HiDPI screens.

Thanks,
Jason


More information about the Spice-devel mailing list