Ver código fonte

Fixed const/non-const warning

Sam Lantinga 12 anos atrás
pai
commit
1f21484bdd
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/render/SDL_yuv_sw.c

+ 2 - 1
src/render/SDL_yuv_sw.c

@@ -1190,7 +1190,8 @@ SDL_SW_UpdateYUVTexturePlanar(SDL_SW_YUVTexture * swdata, const SDL_Rect * rect,
                               const Uint8 *Uplane, int Upitch,
                               const Uint8 *Vplane, int Vpitch)
 {
-    Uint8 *src, *dst;
+    const Uint8 *src;
+    Uint8 *dst;
     int row;
     size_t length;