[Tizen] Add codes for Dali Windows Backend
[platform/core/uifw/dali-demo.git] / examples / refraction-effect / refraction-effect-example.cpp
old mode 100644 (file)
new mode 100755 (executable)
index f713ee9..ad10428
@@ -509,7 +509,9 @@ private:
         }
 
         std::istringstream iss(line.substr(2), std::istringstream::in);
-        unsigned int indices[ numOfInt ];
+
+        std::vector<unsigned int> indices( numOfInt );
+
         unsigned int i=0;
         while( iss >> indices[i++] && i < numOfInt);
         unsigned int step = (i+1) / 3;
@@ -588,20 +590,10 @@ private:
 
 /*****************************************************************************/
 
-static void
-RunTest(Application& app)
-{
-  RefractionEffectExample theApp(app);
-  app.MainLoop();
-}
-
-/*****************************************************************************/
-
 int DALI_EXPORT_API main(int argc, char **argv)
 {
   Application app = Application::New(&argc, &argv, DEMO_THEME_PATH);
-
-  RunTest(app);
-
+  RefractionEffectExample theApp(app);
+  app.MainLoop();
   return 0;
 }