Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-01-02 15:57:01 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-01-02 15:57:01 +0400
commit51c6ecac523845e4aeba4cde7298bb2116564724 (patch)
tree02b7cd41a4f3ba4ccb9d6e572a5295f26ab1ffa0 /source/blender/editors/space_sequencer
parentf54778b7ee70b0039ac6fba254fdbc61a36515ac (diff)
Fix T38004: size of Waveform, Vectorscope and Histogram is incorrect in VSE
Made it so scopes image buffer is displayed without any additional scale applied on them, Further tweaks are possible here, but that i'd consider a TODO.
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_draw.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c
index c6aec21f946..a51fd49c024 100644
--- a/source/blender/editors/space_sequencer/sequencer_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_draw.c
@@ -965,12 +965,6 @@ void draw_image_seq(const bContext *C, Scene *scene, ARegion *ar, SpaceSeq *sseq
glClear(GL_COLOR_BUFFER_BIT);
}
- /* without this colors can flicker from previous opengl state */
- glColor4ub(255, 255, 255, 255);
-
- UI_view2d_totRect_set(v2d, viewrectx + 0.5f, viewrecty + 0.5f);
- UI_view2d_curRect_validate(v2d);
-
/* only initialize the preview if a render is in progress */
if (G.is_rendering)
return;
@@ -1027,8 +1021,16 @@ void draw_image_seq(const bContext *C, Scene *scene, ARegion *ar, SpaceSeq *sseq
}
scopes->reference_ibuf = ibuf;
+ viewrectx = scope->x;
+ viewrecty = scope->y;
}
+ /* without this colors can flicker from previous opengl state */
+ glColor4ub(255, 255, 255, 255);
+
+ UI_view2d_totRect_set(v2d, viewrectx + 0.5f, viewrecty + 0.5f);
+ UI_view2d_curRect_validate(v2d);
+
/* setting up the view - actual drawing starts here */
UI_view2d_view_ortho(v2d);