display: Use correct variable name

Fix gtk2 build
This commit is contained in:
Pavel Grunt 2016-02-15 17:52:06 +01:00
parent fd4c721551
commit c86a4dfa41

View File

@ -378,7 +378,7 @@ void virt_viewer_display_get_preferred_size(VirtViewerDisplay *self,
requisition->width = border_width * 2;
requisition->height = border_width * 2;
if (virt_viewer_display_get_zoom(display)) {
if (virt_viewer_display_get_zoom(self)) {
requisition->width += round(priv->desktopWidth * priv->zoom_level / (double) NORMAL_ZOOM_LEVEL);
requisition->height += round(priv->desktopHeight * priv->zoom_level / (double) NORMAL_ZOOM_LEVEL);
} else {