diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-01-21 13:28:19 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-01-21 13:28:19 +0300 |
commit | 9d54d6ba4e78e83350742b40f9f14ffb5cb8d2f1 (patch) | |
tree | 15eb7cc73f097206d2250f09a013b1ad68b2a8e8 /source/blender/editors/screen/screendump.c | |
parent | da3abc78a24e572baa61a0b7eb24dc6b031958ae (diff) |
Patch #20693: add parameters for FPS and wait timer for screen cast
This patch by Guillaume Lecocq (lguillaume) adds user preference settings for setting the playback frame-rate and delay between captured frames for the screencasting feature.
--
I've made a few tweaks for a few minor issues
- Made DNA vars for these settings shorts instead of ints, reducing the number of unnecessary extra pad vars
- Added version patching to ensure that these settings are initialised by default
- Made tooltips for the settings more descriptive
Diffstat (limited to 'source/blender/editors/screen/screendump.c')
-rw-r--r-- | source/blender/editors/screen/screendump.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/screen/screendump.c b/source/blender/editors/screen/screendump.c index 7fea28304ba..a756eff8c11 100644 --- a/source/blender/editors/screen/screendump.c +++ b/source/blender/editors/screen/screendump.c @@ -38,6 +38,7 @@ #include "DNA_scene_types.h" #include "DNA_screen_types.h" #include "DNA_space_types.h" +#include "DNA_userdef_types.h" #include "BKE_context.h" #include "BKE_global.h" @@ -226,7 +227,7 @@ static void screenshot_startjob(void *sjv, short *stop, short *do_update) int cfra= 1; /* we need this as local variables for renderdata */ - rd.frs_sec= 10; + rd.frs_sec= U.scrcastfps; rd.frs_sec_base= 1.0f; if(BKE_imtype_is_movie(rd.imtype)) { @@ -279,9 +280,10 @@ static void screenshot_startjob(void *sjv, short *stop, short *do_update) *do_update= 1; cfra++; + } else - PIL_sleep_ms(50); + PIL_sleep_ms(U.scrcastwait); } if(mh) |