#4468: Modernize drawtext.cpp
-------------------------------------------------+-------------------------
        Reporter:  Vincent                       |      Owner:
            Type:  patch (an actual patch, not   |     Status:  new
  a request for one)                             |  Milestone:  unspecified
        Priority:  normal                        |    Version:  git/master
       Component:  Engine: other                 |
Operating System:  Windows 10 64bit              |
-------------------------------------------------+-------------------------
 This patch modernizes drawtext.cpp. It encapsulates it into a namespace
 (iV),
 replaces const char* by std::string and break the big DrawFormatted into
 little much
 more manageable function. I think it makes clearer what's happening
 inside.
 There's also a state parameters passed to every function as a default
 argument.
 This way it should be possible to progressivly port code that relies on
 the hidden global
 glc state.

 I tried not to change any algorithm Inside to avoid regression.

--
Ticket URL: <http://developer.wz2100.net/ticket/4468>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project

Reply via email to