[Bf-blender-cvs] [467596d] master: Fix T38860: Video preview in VSE shows a distorted and jagged appearance at scale 1:1

Sergey Sharybin noreply at git.blender.org
Tue Apr 1 12:41:53 CEST 2014


Commit: 467596dd36f48c5779b094c2bfe74c322f19de3d
Author: Sergey Sharybin
Date:   Tue Apr 1 16:40:31 2014 +0600
https://developer.blender.org/rB467596dd36f48c5779b094c2bfe74c322f19de3d

Fix T38860: Video preview in VSE shows a distorted and jagged appearance at scale 1:1

Issue was cauzed by the set zoom ratio optator which didn't really set pixel zoom to 1:1.

===================================================================

M	source/blender/editors/space_sequencer/sequencer_edit.c

===================================================================

diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c
index 952be93..c5f01f8 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, (int)(winx * facx * ratio) + 1, (int)(winy * facy * ratio) + 1);
+	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));




More information about the Bf-blender-cvs mailing list