residualvm/residualvm — pull request #698 by klusark (2012-12-25 21:32:05+00:00)
Title: RFC: EMI: Implement push and pop text opcodes

This is fairly simple code to implement these opcodes. The only problem is I'm not sure where to store the stack of text objects. One thought I had was to build stacking into the object pool system, but then that would probably end up adding overhead to objects which do not need to be stacked. Any suggestions?

These opcodes are only used in a few places, but are used by the menu to store the text objects when an confirmation window comes up, for example, when you go to load a save game and then cancel, without this patch you get a jumble of both sets of text objects, with it, it looks proper.