Commit c829f897 authored by Marc-André Lureau's avatar Marc-André Lureau
Browse files

Revert "spice-widget: ensure a 640x480 initial size on HiDPI"

This reverts commit cbdda333.

This commit doesn't actually do anything useful.
parent b0651e42
......@@ -209,16 +209,19 @@ static void update_size_request(SpiceDisplay *display)
gint reqwidth, reqheight;
gint scale_factor;
scale_factor = gtk_widget_get_scale_factor(GTK_WIDGET(display));
if (d->resize_guest_enable || d->allow_scaling) {
reqwidth = 640 / scale_factor;
reqheight = 480 / scale_factor;
reqwidth = 640;
reqheight = 480;
} else {
reqwidth = d->area.width / scale_factor;
reqheight = d->area.height / scale_factor;
reqwidth = d->area.width;
reqheight = d->area.height;
}
scale_factor = gtk_widget_get_scale_factor(GTK_WIDGET(display));
reqwidth /= scale_factor;
reqheight /= scale_factor;
gtk_widget_set_size_request(GTK_WIDGET(display), reqwidth, reqheight);
recalc_geometry(GTK_WIDGET(display));
update_mouse_cursor(display);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment