Browse Source

latest oxygine compatible

dmuratshin 9 years ago
parent
commit
804a0d3fd5
1 changed files with 6 additions and 1 deletions
  1. 6 1
      examples/HelloFreeType/src/example.cpp

+ 6 - 1
examples/HelloFreeType/src/example.cpp

@@ -59,7 +59,12 @@ public:
 
         //initialize text style
         TextStyle style;
-        style.font = gameResources.getResFont("main")->getFont(0, 40);
+#if OXYGINE_VERSION > 3
+        style.font = gameResources.getResFont("main");
+		style.fontSize = 40;
+#else
+		style.font = gameResources.getResFont("main")->getFont(0, 40);
+#endif
         style.color = Color::Crimson;
         style.vAlign = TextStyle::VALIGN_MIDDLE;
         style.hAlign = TextStyle::HALIGN_CENTER;