]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed unused variable warnings
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Jul 2004 15:47:27 +0000 (15:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Jul 2004 15:47:27 +0000 (15:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/utils.cpp
src/mac/carbon/window.cpp

index be4535ea94f526596acd2f2fb5b86a2bd9b419df..cc1caf7c1068ddb2f07b1619dca4397a5ccf934e 100644 (file)
@@ -1695,8 +1695,8 @@ void  wxMacControl::Convert( wxPoint *pt , wxMacControl *from , wxMacControl *to
     hiPoint.x = pt->x ;
     hiPoint.y = pt->y ;
     HIViewConvertPoint( &hiPoint , from->m_controlRef , to->m_controlRef  ) ;
-    pt->x = hiPoint.x ;
-    pt->y = hiPoint.y ;
+    pt->x = (int)hiPoint.x ;
+    pt->y = (int)hiPoint.y ;
 #endif
 }
 
@@ -1723,7 +1723,6 @@ void wxMacControl::GetRectInWindowCoords( Rect *r )
 
 void wxMacControl::GetBestRect( Rect *r ) 
 {
-    Rect    bestsize = { 0 , 0 , 0 , 0 } ;
     short   baselineoffset ;
     GetBestControlRect( m_controlRef , r , &baselineoffset ) ;
 }
index e13bc1ca5e9921cd3784c359c876205d350fb207..a6bb697f8f7301774017e744d19e99718c245b37 100644 (file)
@@ -2125,9 +2125,6 @@ void wxWindowMac::MacPaintBorders( int left , int top )
     int major,minor;
     wxGetOsVersion( &major, &minor );
 
-    RGBColor white = { 0xFFFF, 0xFFFF , 0xFFFF } ;
-    RGBColor face = { 0xDDDD, 0xDDDD , 0xDDDD } ;
-    
     RGBColor darkShadow = { 0x0000, 0x0000 , 0x0000 } ;
     RGBColor lightShadow = { 0x4444, 0x4444 , 0x4444 } ;
     // OS X has lighter border edges than classic:
@@ -2154,6 +2151,9 @@ void wxWindowMac::MacPaintBorders( int left , int top )
         InsetRect( &rect , border , border );
         DrawThemeEditTextFrame(&rect,IsEnabled() ? kThemeStateActive : kThemeStateInactive) ;
 #else
+        RGBColor white = { 0xFFFF, 0xFFFF , 0xFFFF } ;
+        RGBColor face = { 0xDDDD, 0xDDDD , 0xDDDD } ;
+    
         bool sunken = HasFlag( wxSUNKEN_BORDER ) ;
         RGBForeColor( &face );
         MoveTo( left + 0 , top + h - 2 );