Ticket #45: compat_classes_for_ticket_45.diff
| File compat_classes_for_ticket_45.diff, 1.4 KB (added by wazza, 3 years ago) |
|---|
-
SapphireCompatibilityClasses/SapphireFrontRowCompat.h
87 87 + (id)imageAtPath:(NSString *)path scene:(BRRenderScene *)scene; 88 88 89 89 /*! 90 * @brief Load an image from an Image Ref 91 * 92 * This returns a CGImageRef or a BRImage, depending on platform. 93 * 94 * @param[in] imageRef CGImageRef 95 * @return BRImage on FrontRow of CGImageRef on ATV 96 */ 97 + (id)coverartAsImage: (CGImageRef)imageRef; 98 99 /*! 90 100 * @brief Get a menu text menu item 91 101 * 92 102 * Menu items are of different classes on the ATV and in frontrow. -
SapphireCompatibilityClasses/SapphireFrontRowCompat.m
168 168 } 169 169 } 170 170 171 + (id)coverartAsImage: (CGImageRef)imageRef 172 { 173 // Non-FR - return CGImageRef 174 if (!usingFrontRow) 175 return (id)imageRef; 176 177 // FR - return BRImage 178 Class cls = NSClassFromString(@"BRImage"); 179 return (id)[cls imageWithCGImageRef:imageRef]; 180 } 181 171 182 + (BRAdornedMenuItemLayer *)textMenuItemForScene:(BRRenderScene *)scene folder:(BOOL)folder 172 183 { 173 184 if(usingFrontRow)
