Previous 199869 Revisions Next

r45445 Thursday 3rd March, 2016 at 16:27:09 UTC by Brad Hughes
Add module probe support for directwrite so we can fall back cleanly.
[src/osd/modules/font]font_dwrite.cpp

trunk/src/osd/modules/font/font_dwrite.cpp
r253956r253957
661661   {
662662   }
663663
664   virtual bool probe() override
665   {
666      // This module is available if it can load the expected API Functions
667      if (m_pfnD2D1CreateFactory.initialize() != 0
668         || m_pfnDWriteCreateFactory.initialize() != 0)
669      {
670         return false;
671      }
672
673      return true;
674   }
675
664676   virtual int init(const osd_options &options) override
665677   {
666678      HRESULT result;


Previous 199869 Revisions Next


© 1997-2024 The MAME Team