[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [virt-tools-list] [PATCH virt-viewer] spice: only autoresize once with screen size in fullscreen



Hi

On Thu, Oct 18, 2012 at 10:14 AM, Christophe Fergeau
<cfergeau redhat com> wrote:
>> +    if (self->priv->auto_resize == AUTO_RESIZE_FULLSCREEN) {
>> +        GdkScreen *screen = gtk_widget_get_screen(GTK_WIDGET(self));
>> +        dw = gdk_screen_get_width(screen);
>> +        dh = gdk_screen_get_height(screen);
>> +    }
>> +
>>      if (virt_viewer_display_get_zoom(VIRT_VIEWER_DISPLAY(self))) {
>>          zoom = virt_viewer_display_get_zoom_level(VIRT_VIEWER_DISPLAY(self));
>
> After setting dw/dh to the size of the screen, we then apply the zoom level
> to it. Are we guaranteed that zoom will disabled or less than 100 at this
> point, or should we ignore zoom after going fullscreen?

Imho, zoom should still be applied.

-- 
Marc-André Lureau


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]