diff options
author | Peter Schlaile <peter@schlaile.de> | 2014-04-28 00:59:30 +0400 |
---|---|---|
committer | Peter Schlaile <peter@schlaile.de> | 2014-04-28 00:59:30 +0400 |
commit | a8eb95c4e9d680caa2904405504a27b301a57db0 (patch) | |
tree | 9cadf82cb0b7bbc4d3130584b7eacf00c9849272 /source/blender/editors/space_sequencer | |
parent | 7971ffdf5e1cd14b911b9dffa6dcb25ddd6ceadb (diff) |
Fix T39597: Missing entries in VSE Preview menu
This adds some view ratios in the video sequencer menu, based (copied) on the UV/Image Editor. It also fixes the inverted ratio issue reported in the same task.
Reviewers: #video_sequencer, #user_interface, schlaile
Reviewed By: schlaile
CC: jta, dingto, sergey, schlaile
Differential Revision: https://developer.blender.org/D447
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c index f14eb2f1b18..9b150366a59 100644 --- a/source/blender/editors/space_sequencer/sequencer_edit.c +++ b/source/blender/editors/space_sequencer/sequencer_edit.c @@ -2296,7 +2296,7 @@ static int sequencer_view_zoom_ratio_exec(bContext *C, wmOperator *op) float facx = BLI_rcti_size_x(&v2d->mask) / winx; float facy = BLI_rcti_size_y(&v2d->mask) / winy; - BLI_rctf_resize(&v2d->cur, floorf(winx * facx * ratio + 0.5f), floorf(winy * facy * ratio + 0.5f)); + BLI_rctf_resize(&v2d->cur, floorf(winx * facx / ratio + 0.5f), floorf(winy * facy / ratio + 0.5f)); ED_region_tag_redraw(CTX_wm_region(C)); |