From daf3a02480b9cad2b39d5cc1aa24bf92ca25204f Mon Sep 17 00:00:00 2001 From: knakos Date: Sun, 20 Nov 2005 21:55:27 +0000 Subject: [PATCH] experimenting with font overrides. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@890 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/wince/OSystemWinCE.cxx | 8 ++++++++ stella/src/wince/OSystemWinCE.hxx | 1 + 2 files changed, 9 insertions(+) diff --git a/stella/src/wince/OSystemWinCE.cxx b/stella/src/wince/OSystemWinCE.cxx index d02bbf69b..d4ca0d363 100644 --- a/stella/src/wince/OSystemWinCE.cxx +++ b/stella/src/wince/OSystemWinCE.cxx @@ -162,3 +162,11 @@ uInt32 OSystemWinCE::getTicks(void) { return GetTickCount(); } + +inline const GUI::Font& OSystemWinCE::font() const +{ + if ( ((FrameBufferWinCE *)myFrameBuffer)->IsSmartphone() ) + return consoleFont(); + else + return OSystem::font(); +} \ No newline at end of file diff --git a/stella/src/wince/OSystemWinCE.hxx b/stella/src/wince/OSystemWinCE.hxx index 84b1a8e3b..ea783b405 100644 --- a/stella/src/wince/OSystemWinCE.hxx +++ b/stella/src/wince/OSystemWinCE.hxx @@ -32,6 +32,7 @@ class OSystemWinCE : public OSystem virtual void mainLoop(); virtual uInt32 getTicks(void); virtual void setFramerate(uInt32 framerate); + inline const GUI::Font& font() const; }; #endif