aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-06-03 13:09:24 +0000
committerTorbjörn Andersson2005-06-03 13:09:24 +0000
commit63984c3a232cf9cf686964dff742edd404c976bf (patch)
tree7576a646b6bc1bb74e5aee28fdbb7dcf4a0e57f3 /gui
parent60007ffbea81bb63be95999cc79a55e02ecb0cc6 (diff)
downloadscummvm-rg350-63984c3a232cf9cf686964dff742edd404c976bf.tar.gz
scummvm-rg350-63984c3a232cf9cf686964dff742edd404c976bf.tar.bz2
scummvm-rg350-63984c3a232cf9cf686964dff742edd404c976bf.zip
The alternative form of drawString() is no longer needed.
svn-id: r18326
Diffstat (limited to 'gui')
-rw-r--r--gui/newgui.cpp4
-rw-r--r--gui/newgui.h1
2 files changed, 0 insertions, 5 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp
index 808f1c828e..fcaa45c819 100644
--- a/gui/newgui.cpp
+++ b/gui/newgui.cpp
@@ -455,10 +455,6 @@ void NewGui::drawString(const String &s, int x, int y, int w, OverlayColor color
getFont().drawString(&_screen, s, x, y, w, color, align, deltax, useEllipsis);
}
-void NewGui::drawString(const Graphics::Font *font, const String &s, int x, int y, int w, OverlayColor color, TextAlignment align, int deltax, bool useEllipsis) {
- font->drawString(&_screen, s, x, y, w, color, align, deltax, useEllipsis);
-}
-
//
// Draw the mouse cursor (animated). This is mostly ripped from the cursor code in gfx.cpp
// We could plug in a different cursor here if we like to.
diff --git a/gui/newgui.h b/gui/newgui.h
index e75a084312..2199c552c4 100644
--- a/gui/newgui.h
+++ b/gui/newgui.h
@@ -151,7 +151,6 @@ public:
void drawChar(byte c, int x, int y, OverlayColor color, const Graphics::Font *font = 0);
void drawString(const String &str, int x, int y, int w, OverlayColor color, Graphics::TextAlignment align = Graphics::kTextAlignLeft, int deltax = 0, bool useEllipsis = true);
- void drawString(const Graphics::Font *font, const String &str, int x, int y, int w, OverlayColor color, Graphics::TextAlignment align = Graphics::kTextAlignLeft, int deltax = 0, bool useEllipsis = true);
int getStringWidth(const String &str) const;
int getCharWidth(byte c) const;