Save screenshots to /tmp.
This commit is contained in:
parent
2ed49023fd
commit
9632d549a6
|
@ -199,7 +199,7 @@ void saveScreenshot(void)
|
||||||
char filename[MAX_NAME_LENGTH];
|
char filename[MAX_NAME_LENGTH];
|
||||||
SDL_Surface *sshot;
|
SDL_Surface *sshot;
|
||||||
|
|
||||||
sprintf(filename, "/home/steve/temp/screenshots/%d.bmp", ++i);
|
sprintf(filename, "/tmp/tbftss/%d.bmp", ++i);
|
||||||
|
|
||||||
sshot = SDL_CreateRGBSurface(0, SCREEN_WIDTH, SCREEN_HEIGHT, 32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000);
|
sshot = SDL_CreateRGBSurface(0, SCREEN_WIDTH, SCREEN_HEIGHT, 32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000);
|
||||||
SDL_RenderReadPixels(app.renderer, NULL, SDL_PIXELFORMAT_ARGB8888, sshot->pixels, sshot->pitch);
|
SDL_RenderReadPixels(app.renderer, NULL, SDL_PIXELFORMAT_ARGB8888, sshot->pixels, sshot->pitch);
|
||||||
|
|
Loading…
Reference in New Issue