[gnome-games/wip/exalm/ds: 2/2] savestate-listbox-row: handle square images
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/ds: 2/2] savestate-listbox-row: handle square images
- Date: Sun, 11 Aug 2019 22:45:43 +0000 (UTC)
commit ae67155aff6629e6a2d87403668d9ae2a50047ca
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Mon Aug 12 03:42:37 2019 +0500
savestate-listbox-row: handle square images
src/ui/savestate-listbox-row.vala | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/ui/savestate-listbox-row.vala b/src/ui/savestate-listbox-row.vala
index 7db58ac2..33cdf6b8 100644
--- a/src/ui/savestate-listbox-row.vala
+++ b/src/ui/savestate-listbox-row.vala
@@ -47,12 +47,11 @@ private class Games.SavestateListBoxRow : Gtk.ListBoxRow {
var thumbnail_width = screenshot_width;
var thumbnail_height = (int) (screenshot_width / aspect_ratio);
- if (thumbnail_width > thumbnail_height && thumbnail_width != THUMBNAIL_SIZE) {
+ if (thumbnail_width > thumbnail_height) {
thumbnail_width = THUMBNAIL_SIZE;
thumbnail_height = (int) (THUMBNAIL_SIZE / aspect_ratio);
}
-
- if (thumbnail_height > thumbnail_width && thumbnail_height != THUMBNAIL_SIZE) {
+ else {
thumbnail_height = THUMBNAIL_SIZE;
thumbnail_width = (int) (THUMBNAIL_SIZE * aspect_ratio);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]