Fixed: compiling warning for the function CGContextDrawImage

This commit is contained in:
Alexandre Wilhelm committed 2015-01-13 13:24:43 -08:00
1 parent 31023a1a71
commit ca1bb8e634
2 files changed
+1 -2

No files matched your search

-1
View File
@@ -24,7 +24,6 @@
@import "CPTextField.j"
@import "CPImageView.j"
@import "CALayer.j"
@import "CPGraphicsContext.j"
@class _CPCibCustomResource
@class CPDatePicker
+1 -1
View File
@@ -738,7 +738,7 @@ else if (CPFeatureIsCompatible(CPVMLFeature))
else
{
// I have declared these functions here to make it compile without warnings with the new compiler under rhino.
CGContextClearRect = CGContextDrawLinearGradient = CGContextClip = CGContextClipToRect = function() {throw new Error("function is not declared in this environment")}
CGContextClearRect = CGContextDrawLinearGradient = CGContextClip = CGContextClipToRect = CGContextDrawImage = function() {throw new Error("function is not declared in this environment")}
}
/*!
@endcond