[gnome-games] snapshot-row: Fix thumbnail aspect ratio



commit def9fe4e4df2c25d613671420ed5c21fb4bd3792
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Jun 19 00:39:42 2020 +0500

    snapshot-row: Fix thumbnail aspect ratio
    
    That's what I get for not having code review.

 src/ui/snapshot-row.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/ui/snapshot-row.vala b/src/ui/snapshot-row.vala
index c7be1602..c42ae99e 100644
--- a/src/ui/snapshot-row.vala
+++ b/src/ui/snapshot-row.vala
@@ -48,7 +48,7 @@ private class Games.SnapshotRow : Gtk.ListBoxRow {
 
                Gdk.Pixbuf.get_file_info (screenshot_path, out screenshot_width, out screenshot_height);
 
-               var aspect_ratio = 1.0;//snapshot.screenshot_aspect_ratio;
+               var aspect_ratio = snapshot.screenshot_aspect_ratio;
 
                // A fallback for migrated snapshots
                if (aspect_ratio == 0)


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