OpenTrespasser / JurassicParkTrespasser

A git-based fork of the Jurassic Park: Trespasser source code.
98 stars 24 forks source link

Resolve text overlay content discard and font increase #142

Closed meekee7 closed 3 years ago

meekee7 commented 3 years ago

The problem that the current subtitles (and general text overlay) are disappearing when the game window loses focus (i.e. ALT-TABing) is resolved. The overlay content was discarded at various steps. This behavior is dropped.

There is a another bug with the text overlay and focus-loss: after the first focus-loss, the font size increases. The cause is that the font is first created with a fixed size, but after focus-loss recreated with a dynamically calculated size. Now the dynamic size is used whenever possible. This new behavior more or less mimics that of the CE mod.