Fixed Interpolation1d::waitAndAdd.

Fixed a couple of warnings on VC++.

--HG--
branch : dev
This commit is contained in:
Martín Lucas Golini
2017-12-27 00:11:51 -03:00
parent 3606290585
commit e8edff36d1
3 changed files with 4 additions and 3 deletions

View File

@@ -67,6 +67,7 @@ Interpolation1d &Interpolation1d::wait( const Float& pos, const Time& time ) {
Interpolation1d &Interpolation1d::waitAndAdd(const EE::Float & pos, const EE::System::Time & waitTime, const EE::System::Time & addTime) {
add( pos, waitTime ).add( pos, addTime );
return *this;
}
Interpolation1d & Interpolation1d::reset() {

View File

@@ -1656,7 +1656,7 @@ UIWindow * UIControl::getParentWindow() {
}
bool UIControl::isReverseDraw() const {
return mControlFlags & UI_CTRL_FLAG_REVERSE_DRAW;
return 0 != ( mControlFlags & UI_CTRL_FLAG_REVERSE_DRAW );
}
void UIControl::setReverseDraw( bool reverseDraw ) {

View File

@@ -61,9 +61,9 @@ EE_MAIN_FUNC int main (int argc, char * argv []) {
// Set the font color to a substring of the text
// Create a gradient
size_t size = Txt.size();
int size = (int)Txt.size();
for ( size_t i = 0; i < size; i++ ) {
for ( int i = 0; i < size; i++ ) {
text.setFillColor( Color(255*i/size,0,0,255), i, i+1 );
}