console: calculate width by font
authorDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 26 Dec 2011 11:45:54 +0000 (12:45 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 26 Dec 2011 11:45:54 +0000 (12:45 +0100)
commit4ca6eeae826a307db583e33530738197dc2222f0
tree8069d92dd18d625c145b75ca3683622944950ece
parentd2e1f7d505e6cd7bac14667c3696cd159ca7aee1
console: calculate width by font

Remove the *_set_res() function entirely. Instead, the *_resize() function now
accepts a height argument which is used as quality hint. Internally, we compute
the texture width by the selected font plus the given height. This simplifies
the API and the internal handling and improves output on non-standard
resolutions or with non-standard fonts.
Until now it was only optimized for my 16x9 output but 5x4 output was quite
garbled.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/console.c
src/console.h
tests/test_console.c