diff options
-rw-r--r-- | include/glfont.h | 2 | ||||
-rw-r--r-- | lib/glfont.cc | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/glfont.h b/include/glfont.h index d1ba60c..3675129 100644 --- a/include/glfont.h +++ b/include/glfont.h @@ -20,6 +20,8 @@ namespace mogltk { int printf(const String &, ...); void setcolor(Color); void setshadow(int); + int getchar(char) const; + int singletextsize(const String &) const; private: Uint8 * sizes; diff --git a/lib/glfont.cc b/lib/glfont.cc index a321aaf..2c888ab 100644 --- a/lib/glfont.cc +++ b/lib/glfont.cc @@ -227,7 +227,7 @@ void mogltk::font::putchar(char ch, Color c) { } } -int mogltk::font::getchar(char ch) { +int mogltk::font::getchar(char ch) const { Uint16 * p; int i; @@ -274,8 +274,8 @@ void mogltk::font::setshadow(int s) { shadow = s; } -int mogltk::font::singletextsize(const String & s) { - int i; +int mogltk::font::singletextsize(const String & s) const { + unsigned int i; int r = 0; for (i = 0; i < s.strlen(); i++) { |