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:
authorCampbell Barton <ideasman42@gmail.com>2020-03-19 04:26:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-19 04:28:59 +0300
commitd68d1da1f312b0f726b4ae7a3e49de2220503158 (patch)
treee5213c50db64baa55af8e551179488fcbe45d391
parentf4a60fd85c37972bbd3797ab5eb90d00e1037ac9 (diff)
UI: scale sequence handle by pixelsize
-rw-r--r--source/blender/editors/space_sequencer/sequencer_draw.c2
1 files changed, 1 insertions, 1 deletions
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);