summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2002-12-23 10:47:10 +0000
committerpixel <pixel>2002-12-23 10:47:10 +0000
commit6de972be0a2b03023bad880300abeb0bd7a25be4 (patch)
tree4244c91bbb7f691cc03c538d153d06bd484e2676
parent0e58972c009fc4d8ad2a69a453eeb6529c619bc7 (diff)
Bleh
-rw-r--r--include/glfont.h2
-rw-r--r--lib/glfont.cc6
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++) {