summaryrefslogtreecommitdiff
path: root/src/Graphics.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-05-15 17:13:17 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-05-15 17:13:17 (GMT)
commit136675b56a8a1862afb41ccee5c14e93e483b964 (patch)
tree8f679477c5e1c0984a5cb9c169e339c1ca0d6e0c /src/Graphics.cpp
parent45563e97e813cfd21724ad1111e5de3e04679e1a (diff)
downloadpowder-136675b56a8a1862afb41ccee5c14e93e483b964.zip
powder-136675b56a8a1862afb41ccee5c14e93e483b964.tar.gz
Move style into Component
Diffstat (limited to 'src/Graphics.cpp')
-rw-r--r--src/Graphics.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Graphics.cpp b/src/Graphics.cpp
index 2711237..c7d8ba2 100644
--- a/src/Graphics.cpp
+++ b/src/Graphics.cpp
@@ -570,11 +570,11 @@ void Graphics::textsize(const char * s, int & width, int & height)
if(!strlen(s))
{
width = 0;
- height = 0;
+ height = FONT_H;
return;
}
- int cHeight = FONT_H+2, cWidth = 0, lWidth = 0;
+ int cHeight = FONT_H, cWidth = 0, lWidth = 0;
for (; *s; s++)
{
if (*s == '\n')