[Bf-blender-cvs] [d68d1da1f31] master: UI: scale sequence handle by pixelsize

Campbell Barton noreply at git.blender.org
Thu Mar 19 02:56:27 CET 2020


Commit: d68d1da1f312b0f726b4ae7a3e49de2220503158
Author: Campbell Barton
Date:   Thu Mar 19 12:26:47 2020 +1100
Branches: master
https://developer.blender.org/rBd68d1da1f312b0f726b4ae7a3e49de2220503158

UI: scale sequence handle by pixelsize

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

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

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

diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c
index b801d14f213..fa1e26881c8 100644
--- a/source/blender/editors/space_sequencer/sequencer_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_draw.c
@@ -456,7 +456,7 @@ static void drawmeta_contents(Scene *scene, Sequence *seqm, float x1, float y1,
 /* clamp handles to defined size in pixel space */
 float sequence_handle_size_get_clamped(Sequence *seq, const float pixelx)
 {
-  const float maxhandle = pixelx * SEQ_HANDLE_SIZE;
+  const float maxhandle = (pixelx * SEQ_HANDLE_SIZE) * U.pixelsize;
 
   /* ensure we're not greater than half width */
   return min_ff(maxhandle, ((float)(seq->enddisp - seq->startdisp) / 2.0f) / pixelx);



More information about the Bf-blender-cvs mailing list