Skip to content

Commit

Permalink
Make frame-capture a little more noob-friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
simtr committed Jan 4, 2011
1 parent 3a2bc76 commit 85138b9
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions src/main.c
Expand Up @@ -1614,32 +1614,33 @@ int main(int argc, char *argv[])
}
}
#ifdef INTERNAL
int counterthing;
if(sdl_key=='v')
{
if(sdl_mod & (KMOD_SHIFT)){
if(vs>=1)
vs = 0;
else
vs = 2;
}
else{
if(vs>=1)
vs = 0;
else
vs = 1;
int counterthing;
if(sdl_key=='v'&&!(sdl_mod & (KMOD_LCTRL|KMOD_RCTRL)))
{
if(sdl_mod & (KMOD_SHIFT)){
if(vs>=1)
vs = 0;
else
vs = 2;
}
else
{
if(vs>=1)
vs = 0;
else
vs = 1;
}
counterthing = 0;
}
counterthing = 0;
}
if(vs)
{
if(counterthing+1>=vs)
{
dump_frame(vid_buf, XRES, YRES, XRES+BARSIZE);
counterthing = 0;
}
counterthing = (counterthing+1)%3;
}
{
if(counterthing+1>=vs)
{
dump_frame(vid_buf, XRES, YRES, XRES+BARSIZE);
counterthing = 0;
}
counterthing = (counterthing+1)%3;
}
#endif

if(sdl_wheel)
Expand Down Expand Up @@ -2412,6 +2413,8 @@ int main(int argc, char *argv[])
strappend(uitext, " [CAP LOCKS]");
if(GRID_MODE)
sprintf(uitext, "%s [GRID: %d]", uitext, GRID_MODE);
if(vs)
strappend(uitext, " [FRAME CAPTURE]");

if(sdl_zoom_trig||zoom_en)
{
Expand Down

0 comments on commit 85138b9

Please sign in to comment.