Procházet zdrojové kódy

Fix iOS compilation warnings

Andrey Fidrya před 10 roky
rodič
revize
b915f02762
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      oxygine/src/core/ios/ios.mm

+ 4 - 4
oxygine/src/core/ios/ios.mm

@@ -56,11 +56,11 @@ namespace oxygine
         NSData *data = [NSData dataWithBytesNoCopy:pData length:nDatalen];
         NSData *data = [NSData dataWithBytesNoCopy:pData length:nDatalen];
         UIImage *image = [UIImage imageWithData:data];
         UIImage *image = [UIImage imageWithData:data];
         
         
-        GLuint width = CGImageGetWidth(image.CGImage);
-        GLuint height = CGImageGetHeight(image.CGImage);
+        GLuint width = (GLuint)CGImageGetWidth(image.CGImage);
+        GLuint height = (GLuint)CGImageGetHeight(image.CGImage);
         
         
-        int bits = CGImageGetBitsPerPixel(image.CGImage);
-        int pitch = CGImageGetBytesPerRow(image.CGImage);
+        int bits = (int)CGImageGetBitsPerPixel(image.CGImage);
+        int pitch = (int)CGImageGetBytesPerRow(image.CGImage);
         
         
         CGImageAlphaInfo alpha = CGImageGetAlphaInfo(image.CGImage);
         CGImageAlphaInfo alpha = CGImageGetAlphaInfo(image.CGImage);
         TextureFormat srcFormat = bits == 32 ? TF_R8G8B8A8 : TF_R8G8B8;
         TextureFormat srcFormat = bits == 32 ? TF_R8G8B8A8 : TF_R8G8B8;