GooEngine: Move Timecode metadata burn in to top left
This commit is contained in:
@@ -2202,6 +2202,30 @@ void BKE_image_stamp_buf(Scene *scene,
|
|||||||
y -= BUFF_MARGIN_Y * 2;
|
y -= BUFF_MARGIN_Y * 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Top left corner, below Frame (goo-engine) */
|
||||||
|
if (TEXT_SIZE_CHECK(stamp_data.time, w, h)) {
|
||||||
|
y -= h;
|
||||||
|
|
||||||
|
/* extra space for background */
|
||||||
|
buf_rectfill_area(rect,
|
||||||
|
rectf,
|
||||||
|
width,
|
||||||
|
height,
|
||||||
|
scene->r.bg_stamp,
|
||||||
|
display,
|
||||||
|
0,
|
||||||
|
y - BUFF_MARGIN_Y,
|
||||||
|
w + BUFF_MARGIN_X,
|
||||||
|
y + h + BUFF_MARGIN_Y);
|
||||||
|
|
||||||
|
/* and pad the text. */
|
||||||
|
BLF_position(mono, x, y + y_ofs, 0.0);
|
||||||
|
BLF_draw_buffer(mono, stamp_data.time, sizeof(stamp_data.time));
|
||||||
|
|
||||||
|
/* the extra pixel for background. */
|
||||||
|
y -= BUFF_MARGIN_Y * 2;
|
||||||
|
}
|
||||||
|
|
||||||
/* Top left corner, below File, Date, Memory, Rendertime, Hostname */
|
/* Top left corner, below File, Date, Memory, Rendertime, Hostname */
|
||||||
BLF_enable(mono, BLF_WORD_WRAP);
|
BLF_enable(mono, BLF_WORD_WRAP);
|
||||||
if (TEXT_SIZE_CHECK_WORD_WRAP(stamp_data.note, w, h)) {
|
if (TEXT_SIZE_CHECK_WORD_WRAP(stamp_data.note, w, h)) {
|
||||||
@@ -2250,29 +2274,6 @@ void BKE_image_stamp_buf(Scene *scene,
|
|||||||
x += w + pad;
|
x += w + pad;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Left bottom corner */
|
|
||||||
if (TEXT_SIZE_CHECK(stamp_data.time, w, h)) {
|
|
||||||
|
|
||||||
/* extra space for background */
|
|
||||||
buf_rectfill_area(rect,
|
|
||||||
rectf,
|
|
||||||
width,
|
|
||||||
height,
|
|
||||||
scene->r.bg_stamp,
|
|
||||||
display,
|
|
||||||
x - BUFF_MARGIN_X,
|
|
||||||
y,
|
|
||||||
x + w + BUFF_MARGIN_X,
|
|
||||||
y + h + BUFF_MARGIN_Y);
|
|
||||||
|
|
||||||
/* and pad the text. */
|
|
||||||
BLF_position(mono, x, y + y_ofs, 0.0);
|
|
||||||
BLF_draw_buffer(mono, stamp_data.time, sizeof(stamp_data.time));
|
|
||||||
|
|
||||||
/* space width. */
|
|
||||||
x += w + pad;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (TEXT_SIZE_CHECK(stamp_data.frame, w, h)) {
|
if (TEXT_SIZE_CHECK(stamp_data.frame, w, h)) {
|
||||||
|
|
||||||
/* extra space for background. */
|
/* extra space for background. */
|
||||||
|
|||||||
Reference in New Issue
Block a user