Fixed svace errors and disabled indicator 99/99999/3
authoradam.b <adam.b@samsung.com>
Thu, 24 Nov 2016 16:23:11 +0000 (16:23 +0000)
committeradam.b <adam.b@samsung.com>
Thu, 24 Nov 2016 17:47:23 +0000 (17:47 +0000)
Change-Id: I0d4ea08dcb13932a8aa7ec21d0b204a2f6f2f791

examples/fpp-game/fpp-game-example.cpp
examples/fpp-game/game-texture.cpp
examples/fpp-game/game-utils.cpp

index 19f3a48..211028f 100644 (file)
@@ -93,6 +93,10 @@ public:
   // The Init signal is received once (only) during the Application lifetime
   void Create( Application& application )
   {
+    // Disable indicator
+    Dali::Window winHandle = application.GetWindow();
+    winHandle.ShowIndicator( Dali::Window::INVISIBLE );
+
     // Get a handle to the stage
     mStage = Stage::GetCurrent();
 
index ee31c68..630c28f 100644 (file)
@@ -23,6 +23,8 @@
 #include <dali-toolkit/public-api/image-loader/sync-image-loader.h>
 
 GameTexture::GameTexture()
+: mUniqueId( 0 ),
+  mIsReady( false )
 {
 }
 
@@ -30,8 +32,9 @@ GameTexture::~GameTexture()
 {
 }
 
-GameTexture::GameTexture( const char* filename ) :
-  mUniqueId( 0 )
+GameTexture::GameTexture( const char* filename )
+: mUniqueId( 0 ),
+  mIsReady( false )
 {
   Load( filename );
 }
index 12828dd..5588a4b 100644 (file)
@@ -25,10 +25,16 @@ namespace GameUtils
 bool LoadFile( const char* filename, ByteArray& bytes )
 {
   FILE* fin = fopen( filename, "rb" );
-  fseek( fin, 0, SEEK_END );
+  if( fseek( fin, 0, SEEK_END ) )
+  {
+    return false;
+  }
   bytes.resize( ftell( fin ) );
   std::fill( bytes.begin(), bytes.end(), 0 );
-  fseek( fin, 0, SEEK_SET );
+  if( fseek( fin, 0, SEEK_SET ) )
+  {
+    return false;
+  }
   size_t result = fread( bytes.data(), 1, bytes.size(), fin );
   fclose( fin );
   return (result != 0);