summaryrefslogtreecommitdiff
path: root/lib/font.cc
diff options
context:
space:
mode:
authorpixel <pixel>2003-07-12 03:12:36 +0000
committerpixel <pixel>2003-07-12 03:12:36 +0000
commitd265a7fde35d0b5040f79d490d137deaff57f0b7 (patch)
tree454854b79e27f91199cc1319a562388aa4e640ba /lib/font.cc
parente0f0cfd81fbec4fc20a591409f1bef67e16d62e7 (diff)
Fixed some win32 things
Diffstat (limited to 'lib/font.cc')
-rw-r--r--lib/font.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/font.cc b/lib/font.cc
index efdd9bd..014abde 100644
--- a/lib/font.cc
+++ b/lib/font.cc
@@ -244,7 +244,7 @@ void mogltk::font::putentry(Uint16 entry, ColorP c) {
cx += sizes[entry] + wspace;
}
-void mogltk::font::putchar(char ch, ColorP c) {
+void mogltk::font::drawchar(char ch, ColorP c) {
Uint16 * p;
int i;
@@ -256,7 +256,7 @@ void mogltk::font::putchar(char ch, ColorP c) {
}
}
-int mogltk::font::getchar(char ch) const {
+int mogltk::font::findchar(char ch) const {
Uint16 * p;
int i;
@@ -289,7 +289,7 @@ int mogltk::font::printf(const ugly_string & m, va_list ap) {
if (*p == '\n') {
newline();
} else {
- putchar(*p, textcolor);
+ drawchar(*p, textcolor);
}
}
@@ -338,7 +338,7 @@ int mogltk::font::singletextsize(const String & s) const {
int r = 0;
for (i = 0; i < s.strlen(); i++) {
- r += sizes[getchar(s[i])];
+ r += sizes[findchar(s[i])];
}
return r;