Просмотр исходного кода

playlist: fix thumbnail AR issue

Felix Paul Kühne 10 лет назад
Родитель
Сommit
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]]) {