Minor simplification/optimization of VirtViewerDisplay
Zeeshan Ali (Khattak) authored 12 years ago
Daniel P. Berrange committed 12 years ago
20 | 20 |
Richard W.M. Jones <rjones@redhat.com>
|
21 | 21 |
Ronnie Sahlberg <ronniesahlberg@gmail.com>
|
22 | 22 |
Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
|
|
23 |
Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
|
23 | 24 |
|
24 | 25 |
...send patches to get your name here...
|
25 | 26 |
|
341 | 341 |
requisition->height = border_width * 2;
|
342 | 342 |
|
343 | 343 |
if (priv->dirty) {
|
344 | |
if (priv->zoom)
|
|
344 |
if (priv->zoom) {
|
345 | 345 |
requisition->width += priv->desktopWidth * priv->zoom_level / 100;
|
346 | |
else
|
|
346 |
requisition->height += priv->desktopHeight * priv->zoom_level / 100;
|
|
347 |
} else {
|
347 | 348 |
requisition->width += priv->desktopWidth;
|
|
349 |
requisition->height += priv->desktopHeight;
|
|
350 |
}
|
348 | 351 |
} else {
|
349 | 352 |
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 {
|
357 | 353 |
requisition->height += 50;
|
358 | 354 |
}
|
359 | 355 |
|