瀏覽代碼

playlist: fix thumbnail AR issue

Felix Paul Kühne 10 年之前
父節點
當前提交
eb8bc7f98a
共有 1 個文件被更改,包括 2 次插入1 次删除
  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]]) {