aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2005-02-06 18:12:29 +0000
committerMax Horn2005-02-06 18:12:29 +0000
commit028cc42f2b8e453be5d6f0dd2a65556dbf3d6911 (patch)
treea8cc410072aa209973be795dc9a4d2351f0ee5d9
parent317358ea488702683082e40d3d9ee13a81c62a6d (diff)
downloadscummvm-rg350-028cc42f2b8e453be5d6f0dd2a65556dbf3d6911.tar.gz
scummvm-rg350-028cc42f2b8e453be5d6f0dd2a65556dbf3d6911.tar.bz2
scummvm-rg350-028cc42f2b8e453be5d6f0dd2a65556dbf3d6911.zip
Moved the console font from gui to graphics
svn-id: r16742
-rw-r--r--graphics/consolefont.cpp (renamed from gui/consolefont.cpp)6
-rw-r--r--graphics/fontman.cpp7
-rw-r--r--graphics/module.mk3
-rw-r--r--gui/console.cpp7
-rw-r--r--gui/module.mk1
5 files changed, 11 insertions, 13 deletions
diff --git a/gui/consolefont.cpp b/graphics/consolefont.cpp
index edbff22aa3..c9184e4b2e 100644
--- a/gui/consolefont.cpp
+++ b/graphics/consolefont.cpp
@@ -16,9 +16,7 @@
Copyright 1991, 1998 The Open Group
*/
-namespace GUI {
-
-using namespace Graphics;
+namespace Graphics {
/* Font character bitmap data. */
static const bitmap_t _font_bits[] = {
@@ -4781,4 +4779,4 @@ static const FontDesc desc = {
extern const NewFont g_consolefont(desc);
-} // End of namespace GUI
+} // End of namespace Graphics
diff --git a/graphics/fontman.cpp b/graphics/fontman.cpp
index cc7675fd96..e0ca9e5997 100644
--- a/graphics/fontman.cpp
+++ b/graphics/fontman.cpp
@@ -21,10 +21,6 @@
#include "graphics/fontman.h"
//#include "gui/consolefont.h"
-namespace GUI {
- extern const Graphics::NewFont g_consolefont;
-}
-
DECLARE_SINGLETON(Graphics::FontManager);
namespace Graphics {
@@ -32,6 +28,7 @@ namespace Graphics {
const ScummFont g_scummfont;
extern const NewFont g_sysfont;
extern const NewFont g_sysfont_big;
+extern const NewFont g_consolefont;
FontManager::FontManager() {
@@ -45,7 +42,7 @@ const Font *FontManager::getFontByUsage(FontUsage usage) const {
case kOSDFont:
return &g_scummfont;
case kConsoleFont:
- return &GUI::g_consolefont;
+ return &g_consolefont;
case kGUIFont:
return &g_sysfont;
case kBigGUIFont:
diff --git a/graphics/module.mk b/graphics/module.mk
index 0488ead3a6..83d650b306 100644
--- a/graphics/module.mk
+++ b/graphics/module.mk
@@ -2,11 +2,12 @@ MODULE := graphics
MODULE_OBJS := \
graphics/animation.o \
- graphics/scummfont.o \
+ graphics/consolefont.o \
graphics/font.o \
graphics/fontman.o \
graphics/newfont.o \
graphics/newfont_big.o \
+ graphics/scummfont.o \
graphics/surface.o
MODULE_DIRS += \
diff --git a/gui/console.cpp b/gui/console.cpp
index b9d2374c92..2e1e67d491 100644
--- a/gui/console.cpp
+++ b/gui/console.cpp
@@ -29,9 +29,12 @@
#include "graphics/font.h"
-namespace GUI {
+namespace Graphics {
+extern const NewFont g_consolefont;
+}
+using Graphics::g_consolefont;
-extern const Graphics::NewFont g_consolefont;
+namespace GUI {
#define kConsoleCharWidth (g_consolefont.getMaxCharWidth())
#define kConsoleLineHeight (g_consolefont.getFontHeight() + 2)
diff --git a/gui/module.mk b/gui/module.mk
index bda7f5fa8f..e3b2af7727 100644
--- a/gui/module.mk
+++ b/gui/module.mk
@@ -5,7 +5,6 @@ MODULE_OBJS := \
gui/browser.o \
gui/chooser.o \
gui/console.o \
- gui/consolefont.o \
gui/dialog.o \
gui/editable.o \
gui/EditTextWidget.o \