mirror of https://git.wownero.com/dsc/mxe.git
package sdl_image: show image on screen in test program
This commit is contained in:
parent
402a034f8a
commit
3467773675
|
@ -17,6 +17,9 @@ int main(int argc, char *argv[])
|
|||
image = IMG_Load("test.png");
|
||||
screen = SDL_SetVideoMode(640, 480, 32, SDL_HWSURFACE);
|
||||
|
||||
if (SDL_BlitSurface(image, NULL, screen, NULL) < 0) return 1;
|
||||
SDL_UpdateRect(screen, 0, 0, image->w, image->h);
|
||||
SDL_Delay(3000);
|
||||
SDL_Quit();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue