Moved the console font from gui to graphics

svn-id: r16742
This commit is contained in:
Max Horn 2005-02-06 18:12:29 +00:00
parent 317358ea48
commit 028cc42f2b
5 changed files with 11 additions and 13 deletions

View File

@ -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

View File

@ -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:

View File

@ -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 += \

View File

@ -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)

View File

@ -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 \