mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-20 11:11:28 +00:00
Moved the console font from gui to graphics
svn-id: r16742
This commit is contained in:
parent
317358ea48
commit
028cc42f2b
@ -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
|
@ -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:
|
||||
|
@ -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 += \
|
||||
|
@ -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)
|
||||
|
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user