Usermode/AxWin4 - Added text rendering (very hacky using VGA font)
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / CClient.cpp
index 70c4cf8..2abcb9b 100644 (file)
@@ -8,6 +8,7 @@
 #include <CClient.hpp>
 #include <IIPCChannel.hpp>
 #include <ipc.hpp>
+#include <draw_text.hpp>       // for the fonts
 
 namespace AxWin {
 
@@ -45,6 +46,16 @@ void CClient::SetWindow(int ID, CWindow* window)
        }
 }
 
+IFontFace& CClient::GetFont(unsigned int id)
+{
+       static CFontFallback    fallback_font;
+       if( id == 0 ) {
+               _SysDebug("GetFont: %i = %p", id, &fallback_font);
+               return fallback_font;
+       }
+       assert(!"TODO: CClient::GetFont id != 0");
+}
+
 void CClient::HandleMessage(CDeserialiser& message)
 {
        try {

UCC git Repository :: git.ucc.asn.au