From c6331113ed8ac23f31e25263f06f7fd05d1ffb58 Mon Sep 17 00:00:00 2001 From: cmdocmd <55096480+cmdocmd@users.noreply.github.com> Date: Mon, 22 Jan 2024 01:09:39 +0400 Subject: [PATCH] avm2: Stub `flash.text.engine.TextLine.getAtomIndexAtCharIndex` --- core/src/avm2/globals/flash/text/engine/TextLine.as | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/avm2/globals/flash/text/engine/TextLine.as b/core/src/avm2/globals/flash/text/engine/TextLine.as index 70b66a923..9bcb01001 100644 --- a/core/src/avm2/globals/flash/text/engine/TextLine.as +++ b/core/src/avm2/globals/flash/text/engine/TextLine.as @@ -103,6 +103,11 @@ package flash.text.engine { return -1; } + public function getAtomIndexAtCharIndex(charIndex:int):int { + stub_method("flash.text.engine.TextLine", "getAtomIndexAtCharIndex"); + return -1; + } + public function getAtomBounds(index:int):Rectangle { stub_method("flash.text.engine.TextLine", "getAtomBounds"); return new Rectangle(0, 0, 0, 0);