mirror of
https://github.com/yawut/SDL.git
synced 2026-04-20 23:57:24 -05:00
Fixed compile warnings with Visual C++
This commit is contained in:
parent
ed767d84cc
commit
e9aa9188bf
|
|
@ -704,7 +704,6 @@ SDL_UpdateRects(SDL_Surface * screen, int numrects, SDL_Rect * rects)
|
|||
SDL_DirtyTexture(SDL_VideoTexture, numrects, rects);
|
||||
} else {
|
||||
/* The surface memory needs to be copied to texture */
|
||||
void *pixels;
|
||||
int pitch = screen->pitch;
|
||||
int psize = screen->format->BytesPerPixel;
|
||||
for (i = 0; i < numrects; ++i) {
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
#include "SDL_video.h"
|
||||
#include "../SDL_sysvideo.h"
|
||||
#include "../SDL_yuv_sw_c.h"
|
||||
#include "../SDL_renderer_sw.h"
|
||||
#include "../SDL_rendercopy.h"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -300,6 +300,7 @@ main(int argc, char *argv[])
|
|||
((double) frames * 1000) / (now - then));
|
||||
}
|
||||
quit(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#else /* HAVE_OPENGL */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user