Codebase list virt-viewer / 6109d52
Minor simplification/optimization of VirtViewerDisplay Zeeshan Ali (Khattak) authored 12 years ago Daniel P. Berrange committed 12 years ago
2 changed file(s) with 6 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
2020 Richard W.M. Jones <rjones@redhat.com>
2121 Ronnie Sahlberg <ronniesahlberg@gmail.com>
2222 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
23 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
2324
2425 ...send patches to get your name here...
2526
341341 requisition->height = border_width * 2;
342342
343343 if (priv->dirty) {
344 if (priv->zoom)
344 if (priv->zoom) {
345345 requisition->width += priv->desktopWidth * priv->zoom_level / 100;
346 else
346 requisition->height += priv->desktopHeight * priv->zoom_level / 100;
347 } else {
347348 requisition->width += priv->desktopWidth;
349 requisition->height += priv->desktopHeight;
350 }
348351 } else {
349352 requisition->width += 50;
350 }
351 if (priv->dirty) {
352 if (priv->zoom)
353 requisition->height += priv->desktopHeight * priv->zoom_level / 100;
354 else
355 requisition->height += priv->desktopHeight;
356 } else {
357353 requisition->height += 50;
358354 }
359355