CGFloat
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -237,12 +237,12 @@ static pascal OSStatus wxMacWindowControlEventHandler( EventHandlerCallRef handl
|
|||||||
|
|
||||||
{
|
{
|
||||||
wxMacCGContextStateSaver sg( cgContext ) ;
|
wxMacCGContextStateSaver sg( cgContext ) ;
|
||||||
float alpha = 1.0 ;
|
CGFloat alpha = (CGFloat)1.0 ;
|
||||||
{
|
{
|
||||||
wxWindow* iter = thisWindow ;
|
wxWindow* iter = thisWindow ;
|
||||||
while ( iter )
|
while ( iter )
|
||||||
{
|
{
|
||||||
alpha *= (float) iter->GetTransparent()/255.0 ;
|
alpha *= (CGFloat)( iter->GetTransparent()/255.0 ) ;
|
||||||
if ( iter->IsTopLevel() )
|
if ( iter->IsTopLevel() )
|
||||||
iter = NULL ;
|
iter = NULL ;
|
||||||
else
|
else
|
||||||
@@ -2247,7 +2247,7 @@ void wxWindowMac::MacPaintGrowBox()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CGContextSetRGBFillColor( cgContext, 1.0, 1.0 , 1.0 , 1.0 );
|
CGContextSetRGBFillColor( cgContext, (CGFloat) 1.0, (CGFloat)1.0 ,(CGFloat) 1.0 , (CGFloat)1.0 );
|
||||||
}
|
}
|
||||||
CGContextFillRect( cgContext, cgrect );
|
CGContextFillRect( cgContext, cgrect );
|
||||||
CGContextRestoreGState( cgContext );
|
CGContextRestoreGState( cgContext );
|
||||||
|
Reference in New Issue
Block a user