diff --git a/examples/fpp-game/fpp-game-example.cpp b/examples/fpp-game/fpp-game-example.cpp index 19f3a48..211028f 100644 --- a/examples/fpp-game/fpp-game-example.cpp +++ b/examples/fpp-game/fpp-game-example.cpp @@ -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(); diff --git a/examples/fpp-game/game-texture.cpp b/examples/fpp-game/game-texture.cpp index ee31c68..630c28f 100644 --- a/examples/fpp-game/game-texture.cpp +++ b/examples/fpp-game/game-texture.cpp @@ -23,6 +23,8 @@ #include 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 ); } diff --git a/examples/fpp-game/game-utils.cpp b/examples/fpp-game/game-utils.cpp index 12828dd..5588a4b 100644 --- a/examples/fpp-game/game-utils.cpp +++ b/examples/fpp-game/game-utils.cpp @@ -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);