Skip to content
Snippets Groups Projects
Commit 57af7bc5 authored by Alex Ksandra's avatar Alex Ksandra
Browse files

Fixed textzone sloppy drawing

parent f69d815e
No related branches found
No related tags found
1 merge request!179Small fixes
......@@ -171,7 +171,7 @@ function _M:display(x, y, nb_keyframes, screen_x, screen_y, offset_x, offset_y,
item._tex:toScreenPrecise(x + current_x, y + current_y, item.w, item.h - (clip_y_start + clip_y_end), 0, item.w / item._tex_w, clip_y_start * one_by_tex_h, (item.h - clip_y_end) * one_by_tex_h )
if self.text_shadow and shader then shader:use(false) end
-- add only visible part of item
current_y = current_y + item.h - clip_y_start
current_y = current_y + self.font_h - clip_y_start
end
-- add full size of item
total_h = total_h + self.font_h
......
......@@ -249,7 +249,7 @@ function _M:display(x, y, nb_keyframes, ox, oy, offset_x, offset_y, local_x, loc
item._tex:toScreenPrecise(x + current_x, y + current_y, item.w, item_h - (clip_y_start + clip_y_end), 0, item.w / item._tex_w, clip_y_start * one_by_tex_h, (item_h - clip_y_end) * one_by_tex_h )
end
-- add only visible part of item
current_y = current_y + item_h - clip_y_start
current_y = current_y + item_skip - clip_y_start
end
-- add line skip of item
total_h = total_h + item_skip
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment