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:
authorAditya Y Jeppu <adi.jeppu28@gmail.com>2021-09-03 12:23:29 +0300
committerAditya Y Jeppu <adi.jeppu28@gmail.com>2021-09-03 12:23:29 +0300
commitf3d3e125b774774648f0c9ec84741d3e2c7ef578 (patch)
tree8ccedd97c9e4fa65f29a76beb36cb200a06ad593
parent14d7721836c9d60d3263f1163955bd675f7a5529 (diff)
Small fix of using defined constant instead of immediate value
-rw-r--r--source/blender/editors/space_sequencer/sequencer_draw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_draw.c b/source/blender/editors/space_sequencer/sequencer_draw.c
index 1966f9bc06d..1ec6d9dc4a7 100644
--- a/source/blender/editors/space_sequencer/sequencer_draw.c
+++ b/source/blender/editors/space_sequencer/sequencer_draw.c
@@ -1345,14 +1345,14 @@ static void seq_get_thumb_image_dimensions(Sequence *seq,
float image_width = seq->strip->stripdata->orig_width;
float image_height = seq->strip->stripdata->orig_height;
- /* Fix the dimensions to be max 256 for x or y. */
+ /* Fix the dimensions to be max SEQ_RENDER_THUMB_SIZE (256) for x or y. */
float aspect_ratio = (float)image_width / image_height;
if (image_width > image_height) {
- image_width = 256;
+ image_width = SEQ_RENDER_THUMB_SIZE;
image_height = round_fl_to_int(image_width / aspect_ratio);
}
else {
- image_height = 256;
+ image_height = SEQ_RENDER_THUMB_SIZE;
image_width = round_fl_to_int(image_height * aspect_ratio);
}
@@ -1461,7 +1461,7 @@ static void sequencer_thumbnail_init_job(const bContext *C, View2D *v2d, Editing
CTX_wm_window(C),
CTX_data_scene(C),
"Draw Thumbnails",
- WM_JOB_PROGRESS, // TODO(AYJ): change this and use SEQ_RENDER_THUMB_SIZE
+ 0,
WM_JOB_TYPE_SEQ_DRAW_THUMBNAIL);
/* Get the thumbnail job if it exists. */