mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-21 02:02:54 +03:00
Fixed Interpolation1d::waitAndAdd.
Fixed a couple of warnings on VC++. --HG-- branch : dev
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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 ) {
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user