Browse Source

fix gradient drawing in table

Tobias Conradi 10 years ago
parent
commit
06bfcf10fd

+ 0 - 22
VLC for iOS WatchKit App/Images.xcassets/playback-gradient.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x",
-      "filename" : "playback-gradient.png"
-    },
-    {
-      "idiom" : "universal",
-      "scale" : "2x",
-      "filename" : "playback-gradient@2x.png"
-    },
-    {
-      "idiom" : "universal",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

BIN
VLC for iOS WatchKit App/Images.xcassets/playback-gradient.imageset/playback-gradient.png


BIN
VLC for iOS WatchKit App/Images.xcassets/playback-gradient.imageset/playback-gradient@2x.png


VLC for iOS WatchKit App/Images.xcassets/tableview-gradient.imageset/Contents.json → VLC for iOS WatchKit Extension/Images.xcassets/tableview-gradient.imageset/Contents.json


BIN
VLC for iOS WatchKit App/Images.xcassets/tableview-gradient.imageset/tableview-gradient.png


BIN
VLC for iOS WatchKit App/Images.xcassets/tableview-gradient.imageset/tableview-gradient@2x.png


+ 2 - 2
VLC for iOS WatchKit Extension/VLCRowController.m

@@ -115,10 +115,10 @@
         [backgroundImage drawInRect:CGRectMake(0,0,newSize.width,newSize.height)];
         [backgroundImage drawInRect:CGRectMake(0,0,newSize.width,newSize.height)];
     else {
     else {
         [[UIColor darkGrayColor] set];
         [[UIColor darkGrayColor] set];
-        UIRectFill(CGRectMake(.0, .0, newSize.width, newSize.height));
+        UIRectFill(CGRectMake(0., 0., newSize.width, newSize.height));
     }
     }
 
 
-    [gradient drawInRect:CGRectMake(.0, newSize.height / 2., newSize.width, newSize.height / 2.) blendMode:kCGBlendModeNormal alpha:1.];
+    [gradient drawInRect:CGRectMake(0., 0., newSize.width, newSize.height / 2.) blendMode:kCGBlendModeNormal alpha:1.];
 
 
     UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
     UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();