Kaydet (Commit) af5b416c authored tarafından tsahi glik's avatar tsahi glik

fix dropshadow on ios

üst 602c87b4
......@@ -138,12 +138,26 @@ bool QuartzSalBitmap::Create( CGImageRef xImage, int nBitmapBits,
// copy layer content into the bitmap buffer
if(mxGraphicContext) // remove warning
{
// Flip the image right side up & draw
CGContextSaveGState(mxGraphicContext);
CGContextScaleCTM(mxGraphicContext, 1.0, -1.0);
CGContextTranslateCTM(mxGraphicContext, 0.0, -aLayerSize.height);
CGContextDrawImage( mxGraphicContext,
CGRectMake(static_cast<CGFloat>(-nX),
static_cast<CGFloat>(-nY),
static_cast<CGFloat>(nY),
aLayerSize.width,
aLayerSize.height),
xImage );
// Restore the context so that the coordinate system is restored
CGContextRestoreGState(mxGraphicContext);
}
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment