Commit 995212bb235dd5f4e1cfed70c91256516119ca6b

Authored by adam.b
1 parent 599f271c

Fixed svace errors and disabled indicator

Change-Id: I0d4ea08dcb13932a8aa7ec21d0b204a2f6f2f791
examples/fpp-game/fpp-game-example.cpp
... ... @@ -93,6 +93,10 @@ public:
93 93 // The Init signal is received once (only) during the Application lifetime
94 94 void Create( Application& application )
95 95 {
  96 + // Disable indicator
  97 + Dali::Window winHandle = application.GetWindow();
  98 + winHandle.ShowIndicator( Dali::Window::INVISIBLE );
  99 +
96 100 // Get a handle to the stage
97 101 mStage = Stage::GetCurrent();
98 102  
... ...
examples/fpp-game/game-texture.cpp
... ... @@ -23,6 +23,8 @@
23 23 #include <dali-toolkit/public-api/image-loader/sync-image-loader.h>
24 24  
25 25 GameTexture::GameTexture()
  26 +: mUniqueId( 0 ),
  27 + mIsReady( false )
26 28 {
27 29 }
28 30  
... ... @@ -30,8 +32,9 @@ GameTexture::~GameTexture()
30 32 {
31 33 }
32 34  
33   -GameTexture::GameTexture( const char* filename ) :
34   - mUniqueId( 0 )
  35 +GameTexture::GameTexture( const char* filename )
  36 +: mUniqueId( 0 ),
  37 + mIsReady( false )
35 38 {
36 39 Load( filename );
37 40 }
... ...
examples/fpp-game/game-utils.cpp
... ... @@ -25,10 +25,16 @@ namespace GameUtils
25 25 bool LoadFile( const char* filename, ByteArray& bytes )
26 26 {
27 27 FILE* fin = fopen( filename, "rb" );
28   - fseek( fin, 0, SEEK_END );
  28 + if( fseek( fin, 0, SEEK_END ) )
  29 + {
  30 + return false;
  31 + }
29 32 bytes.resize( ftell( fin ) );
30 33 std::fill( bytes.begin(), bytes.end(), 0 );
31   - fseek( fin, 0, SEEK_SET );
  34 + if( fseek( fin, 0, SEEK_SET ) )
  35 + {
  36 + return false;
  37 + }
32 38 size_t result = fread( bytes.data(), 1, bytes.size(), fin );
33 39 fclose( fin );
34 40 return (result != 0);
... ...