mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-12 14:09:28 +00:00
![Christian Krause](/assets/img/avatar_default.png)
Instead of just ordering the textobjects by their layer, use their creation time (indirectly provided by the pool ID which is continuously counting up). This ensures that if there are multiple textobjects with the same text ID and the same layer, that the latest is drawn last and overwrites the previous ones. That's necessary since the LUA code will create multiple instances of the same textobject for the color fading effect in the credits.