Added support for break lines in centered text.
authorRicardo Cruz <rick2@aeiou.pt>
Wed, 28 Jul 2004 14:57:24 +0000 (14:57 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Wed, 28 Jul 2004 14:57:24 +0000 (14:57 +0000)
commit5a69e137b5dd05607a5a359d0cc56f51aeb9ed0f
tree0724faf1ddd4166bd1049f8a44a06ad30bf0b466
parent6254318eb0911aea47180e566d9b251debb518dd
Added support for break lines in centered text.
The code is pretty hacky, but seems to work fine, and such a feature was really needed to avoid hacks (for instance, the one found in display_text_file()).

In the future, it would be a good idea to add break lines support for get_text_width() and get_text_height().

SVN-Revision: 1652
lib/video/drawing_context.cpp
lib/video/drawing_context.h
lib/video/font.cpp
lib/video/font.h