Make frame-capture a little more noob-friendly

This commit is contained in:
Simon 2011-01-04 18:00:28 +00:00
parent 3a2bc76643
commit 85138b970d

View File

@ -1614,32 +1614,33 @@ int main(int argc, char *argv[])
} }
} }
#ifdef INTERNAL #ifdef INTERNAL
int counterthing; int counterthing;
if(sdl_key=='v') if(sdl_key=='v'&&!(sdl_mod & (KMOD_LCTRL|KMOD_RCTRL)))
{ {
if(sdl_mod & (KMOD_SHIFT)){ if(sdl_mod & (KMOD_SHIFT)){
if(vs>=1) if(vs>=1)
vs = 0; vs = 0;
else else
vs = 2; vs = 2;
}
else
{
if(vs>=1)
vs = 0;
else
vs = 1;
}
counterthing = 0;
} }
else{
if(vs>=1)
vs = 0;
else
vs = 1;
}
counterthing = 0;
}
if(vs) if(vs)
{ {
if(counterthing+1>=vs) if(counterthing+1>=vs)
{ {
dump_frame(vid_buf, XRES, YRES, XRES+BARSIZE); dump_frame(vid_buf, XRES, YRES, XRES+BARSIZE);
counterthing = 0; counterthing = 0;
} }
counterthing = (counterthing+1)%3; counterthing = (counterthing+1)%3;
} }
#endif #endif
if(sdl_wheel) if(sdl_wheel)
@ -2412,6 +2413,8 @@ int main(int argc, char *argv[])
strappend(uitext, " [CAP LOCKS]"); strappend(uitext, " [CAP LOCKS]");
if(GRID_MODE) if(GRID_MODE)
sprintf(uitext, "%s [GRID: %d]", uitext, GRID_MODE); sprintf(uitext, "%s [GRID: %d]", uitext, GRID_MODE);
if(vs)
strappend(uitext, " [FRAME CAPTURE]");
if(sdl_zoom_trig||zoom_en) if(sdl_zoom_trig||zoom_en)
{ {