diff options
author | Paul Gilbert | 2015-03-15 17:25:21 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-03-15 17:25:21 -0400 |
commit | eaab373a9687c6d6d3be3983bb77da5a69897a24 (patch) | |
tree | 6d59fa038e6798535e7c147ff61cb0b5d57c8ec6 /engines/sherlock/graphics.cpp | |
parent | 87a9ba5f2f5b9c3cde675c238ce718147417df03 (diff) | |
download | scummvm-rg350-eaab373a9687c6d6d3be3983bb77da5a69897a24.tar.gz scummvm-rg350-eaab373a9687c6d6d3be3983bb77da5a69897a24.tar.bz2 scummvm-rg350-eaab373a9687c6d6d3be3983bb77da5a69897a24.zip |
SHERLOCK: Added skeleton Screen class
Diffstat (limited to 'engines/sherlock/graphics.cpp')
-rw-r--r-- | engines/sherlock/graphics.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/engines/sherlock/graphics.cpp b/engines/sherlock/graphics.cpp index f4a5bf1864..695635d2ca 100644 --- a/engines/sherlock/graphics.cpp +++ b/engines/sherlock/graphics.cpp @@ -21,6 +21,8 @@ */ #include "sherlock/graphics.h" +#include "sherlock/sherlock.h" +#include "common/system.h" namespace Sherlock { @@ -41,5 +43,24 @@ void Surface::drawSprite(int x, int y, SpriteFrame *spriteFrame, bool flipped, b } +/*----------------------------------------------------------------*/ + +Screen::Screen(SherlockEngine *vm) : Surface(SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCREEN_HEIGHT), _vm(vm) { + setFont(1); +} + +void Screen::setFont(int fontNumber) { + _fontNumber = fontNumber; + Common::String fname = Common::String::format("FONT%d.VGS", fontNumber); + Common::SeekableReadStream *stream = _vm->_res->load(fname); + + debug("TODO: Loading font %s, size - %d", fname.c_str(), stream->size()); + + delete stream; +} + +void Screen::update() { + g_system->updateScreen(); +} } // End of namespace Sherlock |