ecere/gfx/newFonts: Excluding from ECERE_ONEDRIVER configurations
authorJerome St-Louis <jerome@ecere.com>
Thu, 4 Aug 2016 00:30:43 +0000 (20:30 -0400)
committerJerome St-Louis <jerome@ecere.com>
Mon, 21 Nov 2016 14:18:51 +0000 (09:18 -0500)
ecere/src/gfx/DisplaySystem.ec
ecere/src/gfx/FontResource.ec

index 5dcc032..93482a4 100644 (file)
@@ -162,7 +162,7 @@ public:
          resources.Add(res);
 
          // This will load e.g. the Bitmap *
-#if !defined(ECERE_VANILLA)
+#if !defined(ECERE_VANILLA) && !defined(ECERE_ONEDRIVER)
          if(fm)
          {
             ((FontResource)res.resource).LoadFM((FontResource)resource, this, fm);
@@ -171,7 +171,7 @@ public:
 #endif
             res.resource.Load(resource, this);
       }
-#if !defined(ECERE_VANILLA)
+#if !defined(ECERE_VANILLA) && !defined(ECERE_ONEDRIVER)
       else if(fm)
       {
          FontResource fr = (FontResource)res.resource;
@@ -200,7 +200,7 @@ public:
       return _LoadResource(resource, null);
    }
 
-#if !defined(ECERE_VANILLA)
+#if !defined(ECERE_VANILLA) && !defined(ECERE_ONEDRIVER)
    void * LoadResourceFM(Resource resource, FontManager fm)
    {
       return _LoadResource(resource, fm);
index 02c7a14..d85aa87 100644 (file)
@@ -1,7 +1,7 @@
 namespace gfx;
 
 import "Window"
-#if !defined(ECERE_VANILLA)
+#if !defined(ECERE_VANILLA) && !defined(ECERE_ONEDRIVER)
 import "fmFontManager"
 #endif
 
@@ -17,7 +17,7 @@ public:
    property Window window { set { if(value) { value.RemoveResource(this); value.AddResource(this); } }  };
    property float outlineSize { set { outlineSize = value; } get { return this ? outlineSize : 0; } };
    property float outlineFade { set { outlineFade = value; } get { return this ? outlineFade : 0; } };
-#if !defined(ECERE_VANILLA)
+#if !defined(ECERE_VANILLA) && !defined(ECERE_ONEDRIVER)
    property FMFont fmFont { get { return this ? fmFont : null; } };
 #endif
 
@@ -28,7 +28,7 @@ private:
    FontFlags flags;
    DisplaySystem displaySystem;
    float outlineSize, outlineFade;
-#if !defined(ECERE_VANILLA)
+#if !defined(ECERE_VANILLA) && !defined(ECERE_ONEDRIVER)
    FontManager fm;
    FMFont fmFont;
 #endif
@@ -48,7 +48,7 @@ private:
       }
    }
 
-#if !defined(ECERE_VANILLA)
+#if !defined(ECERE_VANILLA) && !defined(ECERE_ONEDRIVER)
    void LoadFM(FontResource copy, DisplaySystem displaySystem, FontManager fm)
    {
       Load(copy, displaySystem);
@@ -69,7 +69,7 @@ private:
       *&outlineSize = *&reference.outlineSize;
       *&outlineFade = *&reference.outlineFade;
       font = reference.font;
-#if !defined(ECERE_VANILLA)
+#if !defined(ECERE_VANILLA) && !defined(ECERE_ONEDRIVER)
       fmFont = reference.fmFont;
 #endif
    }
@@ -77,7 +77,7 @@ private:
    void Dereference()
    {
       font = null;
-#if !defined(ECERE_VANILLA)
+#if !defined(ECERE_VANILLA) && !defined(ECERE_ONEDRIVER)
       fmFont = null;
 #endif
    }
@@ -86,7 +86,7 @@ private:
    {
       if(font && displaySystem)
          displaySystem.UnloadFont(font);
-#if !defined(ECERE_VANILLA)
+#if !defined(ECERE_VANILLA) && !defined(ECERE_ONEDRIVER)
       if(fmFont && fm)
          fm.removeFont(fmFont);
 #endif