[vlc-commits] mac plugin: slightly improve drawing within Firefox on 10.6

Felix Paul Kühne git at videolan.org
Mon Feb 17 20:19:05 CET 2014


npapi-vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Feb 17 20:19:11 2014 +0100| [8232ec377fd4b55751bd6f1e844e9ea02322feb8] | committer: Felix Paul Kühne

mac plugin: slightly improve drawing within Firefox on 10.6

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=8232ec377fd4b55751bd6f1e844e9ea02322feb8
---

 npapi/vlcplugin_mac.mm |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/npapi/vlcplugin_mac.mm b/npapi/vlcplugin_mac.mm
index 220c778..6f9b378 100644
--- a/npapi/vlcplugin_mac.mm
+++ b/npapi/vlcplugin_mac.mm
@@ -231,7 +231,6 @@ void VlcPluginMac::update_controls()
     if (currentstate == libvlc_Playing || currentstate == libvlc_Paused || currentstate == libvlc_Opening) {
         [noMediaLayer setHidden: YES];
         [playbackLayer setHidden: NO];
-        [playbackLayer setNeedsDisplay];
     } else {
         [noMediaLayer setHidden: NO];
         [playbackLayer setHidden: YES];
@@ -269,7 +268,6 @@ NPError VlcPluginMac::get_root_layer(void *value)
     [browserRootLayer addSublayer: noMediaLayer];
 
     controllerLayer = [[VLCControllerLayer alloc] init];
-    controllerLayer.opaque = 1.;
     [browserRootLayer addSublayer: controllerLayer];
     [controllerLayer setCppPlugin: this];
 
@@ -728,13 +726,11 @@ static CGImageRef createImageNamed(NSString *name)
 
 - (void)drawInContext:(CGContextRef)cgContext
 {
-    CGContextSaveGState(cgContext);
     CGContextSetFillColorWithColor(cgContext, CGColorGetConstantColor(kCGColorBlack));
     CGContextFillRect(cgContext, self.bounds);
 
     [self _drawPlayPauseButtonInContext:cgContext];
     [self _drawSliderInContext:cgContext];
-    CGContextRestoreGState(cgContext);
 }
 
 #pragma mark -



More information about the vlc-commits mailing list