fix: specify ass_set_storage_size
Some checks failed
Emscripten / build (push) Failing after 1s

According to [1], `ass_set_storage_size` must be called to render transforms correctly.

References:
[1] https://github.com/libass/libass/issues/591

Cherry-picked from: 0c258cf996
This commit is contained in:
ThaUnknown 2024-08-05 21:59:14 +02:00 committed by Dmitry Lyzo
parent 1b6693c942
commit 19942b5a89

View File

@ -375,6 +375,7 @@ public:
/* CANVAS */
void resizeCanvas(int frame_w, int frame_h) {
ass_set_frame_size(ass_renderer, frame_w, frame_h);
ass_set_storage_size(ass_renderer, frame_w, frame_h);
canvas_h = frame_h;
canvas_w = frame_w;
}