Quellcode durchsuchen

playlist: fix thumbnail AR issue

Felix Paul Kühne vor 10 Jahren
Ursprung
Commit
eb8bc7f98a
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      VLC for iOS WatchKit Extension/VLCPlaylistInterfaceController.m

+ 2 - 1
VLC for iOS WatchKit Extension/VLCPlaylistInterfaceController.m

@@ -160,7 +160,8 @@ typedef enum {
     VLCRowController *row = rowController;
 
     CGRect screenRect = WKInterfaceDevice.currentDevice.screenBounds;
-    UIImage *backgroundImage = [VLCThumbnailsCache thumbnailForManagedObject:storageObject toFitRect: (CGRect){CGPointZero, CGSizeMake(screenRect.size.width * WKInterfaceDevice.currentDevice.screenScale, 120.)} shouldReplaceCache:YES];
+    CGFloat screenScale = WKInterfaceDevice.currentDevice.screenScale;
+    UIImage *backgroundImage = [VLCThumbnailsCache thumbnailForManagedObject:storageObject toFitRect: (CGRect){CGPointZero, CGSizeMake(screenRect.size.width * screenScale, 120. * screenScale)} shouldReplaceCache:YES];
 
     float playbackProgress = 0.0;
     if ([storageObject isKindOfClass:[MLShow class]]) {