summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fontwrapper-ft.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-06-25 12:09:30 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-06-25 12:13:19 +0200
commite8cd0829e3d526b76f4152a52b7a32696030a57c (patch)
tree412fe9e4bb9127775e45dd704ce57fe5c9f4e66a /crawl-ref/source/fontwrapper-ft.cc
parent71a6d884bb97b2d1fc8c0b0a44b8af1bcaab06b4 (diff)
downloadcrawl-ref-e8cd0829e3d526b76f4152a52b7a32696030a57c.tar.gz
crawl-ref-e8cd0829e3d526b76f4152a52b7a32696030a57c.zip
A pixel = 1px, 4 bytes.
Diffstat (limited to 'crawl-ref/source/fontwrapper-ft.cc')
-rw-r--r--crawl-ref/source/fontwrapper-ft.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/fontwrapper-ft.cc b/crawl-ref/source/fontwrapper-ft.cc
index a1a7fb2bd0..350af9efd5 100644
--- a/crawl-ref/source/fontwrapper-ft.cc
+++ b/crawl-ref/source/fontwrapper-ft.cc
@@ -123,8 +123,9 @@ bool FTFontWrapper::load_font(const char *font_name, unsigned int font_size,
pixels = new unsigned char[4 * m_ft_width * m_ft_height];
memset(pixels, 0, sizeof(unsigned char) * 4 * m_ft_width * m_ft_height);
- dprintf("new font tex %d x %d x 4 = %dpx\n",
- m_ft_width, m_ft_height, 4 * m_ft_width * m_ft_height);
+ dprintf("new font tex %d x %d x 4 = %dpx %d bytes\n",
+ m_ft_width, m_ft_height, m_ft_width * m_ft_height,
+ 4 * m_ft_width * m_ft_height);
// Special case c = 0 for full block.
{