Fix uint16 max issue in TextLabel 75/276475/4
authorBowon Ryu <bowon.ryu@samsung.com>
Fri, 17 Jun 2022 06:16:16 +0000 (15:16 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Mon, 20 Jun 2022 00:49:36 +0000 (09:49 +0900)
commit66b6b6963d8f8516956550e73f042e686dcec06b
treece911c992bc24152235b155d5492ff076b34a74d
parente818ec3551f62ff66deb68678b142040673eb074
Fix uint16 max issue in TextLabel

If the size of TextLabel is bigger than uint16 max value,
there is a problem that assert occurs in Texture::New.

We can avoid the assert by setting the VisualTransform size to uint16 max,
but this also doesn't guaranteed rendering behavior.

To guaranteed the behavior, VisualTransform size is limitted to maxTextureSize.

Change-Id: I68523c89aecc71a9158e59948bca037d5c73c95a
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp
dali-toolkit/internal/controls/text-controls/text-label-impl.cpp