Añadido CAPTURADOR
This commit is contained in:
parent
9dd4008212
commit
0c7215d129
|
@ -60,7 +60,9 @@ int main(int argc, char* argv[])
|
||||||
byte* vartemp;
|
byte* vartemp;
|
||||||
byte* p;
|
byte* p;
|
||||||
Uint8* teclas;
|
Uint8* teclas;
|
||||||
|
char capturef[50];
|
||||||
//const SDL_version* sdl_version;
|
//const SDL_version* sdl_version;
|
||||||
|
|
||||||
#ifdef DBG
|
#ifdef DBG
|
||||||
int start_lin;
|
int start_lin;
|
||||||
int linsize;
|
int linsize;
|
||||||
|
@ -337,7 +339,12 @@ int main(int argc, char* argv[])
|
||||||
if(teclas[SDLK_x] && (teclas[SDLK_RALT] || teclas[SDLK_LALT]))
|
if(teclas[SDLK_x] && (teclas[SDLK_RALT] || teclas[SDLK_LALT]))
|
||||||
stub_quit(0);
|
stub_quit(0);
|
||||||
if(teclas[SDLK_p] && (teclas[SDLK_RALT] || teclas[SDLK_LALT]))
|
if(teclas[SDLK_p] && (teclas[SDLK_RALT] || teclas[SDLK_LALT]))
|
||||||
SDL_SaveBMP(fp.screen,"SC.BMP");
|
{
|
||||||
|
strcpy(capturef,fp.nombre_program);
|
||||||
|
strcat(capturef,".bmp");
|
||||||
|
SDL_SaveBMP(fp.screen,capturef);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
interprete();
|
interprete();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue