Skip to content
Snippets Groups Projects
Commit 6e018f71 authored by callum's avatar callum
Browse files

Fix for compiler warning - passing F64 in as an int

parent 37838524
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ class MediaPluginExample : ...@@ -52,7 +52,7 @@ class MediaPluginExample :
private: private:
bool init(); bool init();
void update( int milliseconds ); void update( F64 milliseconds );
void write_pixel( int x, int y, unsigned char r, unsigned char g, unsigned char b ); void write_pixel( int x, int y, unsigned char r, unsigned char g, unsigned char b );
bool mFirstTime; bool mFirstTime;
...@@ -276,7 +276,7 @@ void MediaPluginExample::receiveMessage( const char* message_string ) ...@@ -276,7 +276,7 @@ void MediaPluginExample::receiveMessage( const char* message_string )
if ( key == ' ') if ( key == ' ')
{ {
mLastUpdateTime = 0; mLastUpdateTime = 0;
update( 0 ); update( 0.0f );
}; };
}; };
} }
...@@ -293,7 +293,7 @@ void MediaPluginExample::receiveMessage( const char* message_string ) ...@@ -293,7 +293,7 @@ void MediaPluginExample::receiveMessage( const char* message_string )
mLastUpdateTime = 0; mLastUpdateTime = 0;
mFirstTime = true; mFirstTime = true;
mStopAction = false; mStopAction = false;
update( 0 ); update( 0.0f );
} }
else else
if ( message_name == "browse_stop" ) if ( message_name == "browse_stop" )
...@@ -302,7 +302,7 @@ void MediaPluginExample::receiveMessage( const char* message_string ) ...@@ -302,7 +302,7 @@ void MediaPluginExample::receiveMessage( const char* message_string )
mXInc[ n ] = mYInc[ n ] = 0; mXInc[ n ] = mYInc[ n ] = 0;
mStopAction = true; mStopAction = true;
update( 0 ); update( 0.0f );
} }
else else
{ {
...@@ -339,7 +339,7 @@ void MediaPluginExample::write_pixel( int x, int y, unsigned char r, unsigned ch ...@@ -339,7 +339,7 @@ void MediaPluginExample::write_pixel( int x, int y, unsigned char r, unsigned ch
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// //
void MediaPluginExample::update( int milliseconds ) void MediaPluginExample::update( F64 milliseconds )
{ {
if ( mWidth < 1 || mWidth > 2048 || mHeight < 1 || mHeight > 2048 ) if ( mWidth < 1 || mWidth > 2048 || mHeight < 1 || mHeight > 2048 )
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment