]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/iphone/utils.mm
Never overflow the output buffer in wxBase64Decode().
[wxWidgets.git] / src / osx / iphone / utils.mm
index 8c780ac93dd28caa61bfc5bf24716cce53548400..565f345f3dd8e31a32306b47c02544578f833abe 100644 (file)
@@ -145,7 +145,7 @@ void wxClientDisplayRect(int *x, int *y, int *width, int *height)
         *width = r.size.width;
     if ( height )
         *height = r.size.height;
-    
+
 }
 
 void wxGetMousePosition( int* x, int* y )
@@ -163,7 +163,7 @@ int wxDisplayDepth()
 void wxDisplaySize(int *width, int *height)
 {
     CGRect bounds = [[UIScreen mainScreen] bounds];
-    
+
     if ( width )
         *width = (int)bounds.size.width ;
     if ( height )
@@ -224,21 +224,21 @@ wxBitmap wxWindowDCImpl::DoGetAsBitmap(const wxRect *subrect) const
     // call this method when a Blit is performed with it as a source.
     if (!m_window)
         return wxNullBitmap;
-        
+
     wxSize sz = m_window->GetSize();
-    
+
     int left = subrect != NULL ? subrect->x : 0 ;
     int top = subrect != NULL ? subrect->y : 0 ;
     int width = subrect != NULL ? subrect->width : sz.x;
     int height = subrect !=  NULL ? subrect->height : sz.y ;
-    
+
     wxBitmap bmp = wxBitmap(width, height, 32);
-    
+
     CGContextRef context = (CGContextRef)bmp.GetHBITMAP();
-    
+
     CGContextSaveGState(context);
-    
-    
+
+
     CGContextTranslateCTM( context, 0,  height );
     CGContextScaleCTM( context, 1, -1 );