Skip to content

Commit

Permalink
ACCESS: Change font method parameter types
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Aug 25, 2014
1 parent 89993e1 commit 707a01c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions engines/access/font.cpp
Expand Up @@ -131,7 +131,7 @@ bool Font::getLine(Common::String &s, int maxWidth, Common::String &line, int &w
return true;
}

void Font::drawString(Graphics::Surface *s, const Common::String &msg, const Common::Point &pt) {
void Font::drawString(ASurface *s, const Common::String &msg, const Common::Point &pt) {
Common::Point currPt = pt;
const char *msgP = msg.c_str();

Expand All @@ -141,7 +141,7 @@ void Font::drawString(Graphics::Surface *s, const Common::String &msg, const Com
}
}

int Font::drawChar(Graphics::Surface *s, char c, Common::Point &pt) {
int Font::drawChar(ASurface *s, char c, Common::Point &pt) {
Graphics::Surface &ch = _chars[c - ' '];

// Loop through the lines of the character
Expand Down
4 changes: 2 additions & 2 deletions engines/access/font.h
Expand Up @@ -78,12 +78,12 @@ class Font {
/**
* Draw a string on a given surface
*/
void drawString(Graphics::Surface *s, const Common::String &msg, const Common::Point &pt);
void drawString(ASurface *s, const Common::String &msg, const Common::Point &pt);

/**
* Draw a character on a given surface
*/
int drawChar(Graphics::Surface *s, char c, Common::Point &pt);
int drawChar(ASurface *s, char c, Common::Point &pt);
};

class FontManager {
Expand Down

0 comments on commit 707a01c

Please sign in to comment.