From 2ef9753588b02155faf8bc5a176e4fcf7489dae2 Mon Sep 17 00:00:00 2001 From: pixel Date: Fri, 14 Mar 2003 13:36:40 +0000 Subject: glcolor, first episode --- lib/glfont.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/glfont.cc') diff --git a/lib/glfont.cc b/lib/glfont.cc index 5cb1646..d8dbb5b 100644 --- a/lib/glfont.cc +++ b/lib/glfont.cc @@ -160,7 +160,7 @@ mogltk::font::~font() { free(sizes); } -void mogltk::font::drawentry(Uint16 entry, int x, int y, Color c) { +void mogltk::font::drawentry(Uint16 entry, int x, int y, ColorP c) { bool was2D; int trueentry, cx, cy, px, py; @@ -208,12 +208,12 @@ void mogltk::font::putcursor(int x, int y) { cy = y; } -void mogltk::font::putentry(Uint16 entry, Color c) { +void mogltk::font::putentry(Uint16 entry, ColorP c) { drawentry(entry, cx, cy, c); cx += sizes[entry]; } -void mogltk::font::putchar(char ch, Color c) { +void mogltk::font::putchar(char ch, ColorP c) { Uint16 * p; int i; @@ -290,7 +290,7 @@ int mogltk::font::printf(const char * p, ...) { return r; } -void mogltk::font::setcolor(Color c) { +void mogltk::font::setcolor(ColorP c) { textcolor = c; } -- cgit v1.2.3