summaryrefslogtreecommitdiff
path: root/src/graphics/Graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics/Graphics.cpp')
-rw-r--r--src/graphics/Graphics.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/graphics/Graphics.cpp b/src/graphics/Graphics.cpp
index fef4b45..dde2701 100644
--- a/src/graphics/Graphics.cpp
+++ b/src/graphics/Graphics.cpp
@@ -489,6 +489,11 @@ int Graphics::textwidth(const char *s)
return x-1;
}
+int Graphics::CharWidth(char c)
+{
+ return font_data[font_ptrs[(int)c]];
+}
+
int Graphics::textnwidth(char *s, int n)
{
int x = 0;