]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/window.mm
don't give error messages if ws2_32.dll is not available in wxGetHostName()
[wxWidgets.git] / src / cocoa / window.mm
index 8fdd67223a72e66b3718b3a6c513d44f2a74345f..7ae5fdf02ae8ef8e0f6359cd8935cd71648cccdc 100644 (file)
@@ -201,17 +201,17 @@ void wxWindowCocoaScroller::ClientSizeToSize(int &width, int &height)
         hasHorizontalScroller: [m_cocoaNSScrollView hasHorizontalScroller]
         hasVerticalScroller: [m_cocoaNSScrollView hasVerticalScroller]
         borderType: [m_cocoaNSScrollView borderType]];
-    width = frameSize.width;
-    height = frameSize.height;
+    width = (int)frameSize.width;
+    height = (int)frameSize.height;
 }
 
 void wxWindowCocoaScroller::DoGetClientSize(int *x, int *y) const
 {
     NSSize nssize = [m_cocoaNSScrollView contentSize];
     if(x)
-        *x = nssize.width;
+        *x = (int)nssize.width;
     if(y)
-        *y = nssize.height;
+        *y = (int)nssize.height;
 }
 
 void wxWindowCocoaScroller::Cocoa_FrameChanged(void)