Skip to content
Snippets Groups Projects
  1. Jan 24, 2015
    • Eric Wykoff's avatar
      5651334e
    • DarkGod's avatar
      Merge branch 'colored_strings' into 'master' · 38814c47
      DarkGod authored
      Many a fix to colored string rendering.
      
      Problems found and obliterated:
      * drawColorString and drawColorStringBlended were the same. Now they correctly alias one another instead of being letter-to-letter copies. (And they were, I swear.)
      * drawColorString used LPEG and Font.size, which also used LPEG. This resulted in extreme double LPEGging of every word. See below.
      * drawColorString was word-to-word tstring.drawOnSurface except less powerful and with return value. So I expressed the former in terms of the latter. This also fixed aforementioned problem with using Font.size.
      * the same LPEG expressions were used in drawColorString, Font.size, and string.toTString. Now everything uses tstrings.
      * TStrings now cache results parsed from strings, so functions that accept fancy strings don't choke parsing them every time. Let me say, this helps.
      Results: tremendously improved performance on low-end machines.
      38814c47
    • DarkGod's avatar
      ogrific · 887a26e8
      DarkGod authored
      887a26e8
  2. Jan 23, 2015
  3. Jan 22, 2015
Loading