projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix coverity #29604
[supertux.git]
/
src
/
supertux
/
shrinkfade.cpp
diff --git
a/src/supertux/shrinkfade.cpp
b/src/supertux/shrinkfade.cpp
index
e83d081
..
adee153
100644
(file)
--- a/
src/supertux/shrinkfade.cpp
+++ b/
src/supertux/shrinkfade.cpp
@@
-14,13
+14,13
@@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include "supertux/
main
.hpp"
+#include "supertux/
globals
.hpp"
#include "supertux/shrinkfade.hpp"
#include "video/drawing_context.hpp"
#include "supertux/shrinkfade.hpp"
#include "video/drawing_context.hpp"
-ShrinkFade::ShrinkFade(const Vector& dest
, float fade_time
) :
- dest(dest
),
- fade_time(fade_time
),
+ShrinkFade::ShrinkFade(const Vector& dest
_, float fade_time_
) :
+ dest(dest
_),
+ fade_time(fade_time
_),
accum_time(0),
speedleft(),
speedright(),
accum_time(0),
speedleft(),
speedright(),
@@
-50,7
+50,7
@@
ShrinkFade::draw(DrawingContext& context)
{
float progress = accum_time / fade_time;
context.draw_inverse_ellipse(dest,
{
float progress = accum_time / fade_time;
context.draw_inverse_ellipse(dest,
- Vector(2*SCREEN_WIDTH * (1.0f - progress),
+ Vector(2*SCREEN_WIDTH * (1.0f - progress),
2*SCREEN_HEIGHT * (1.0f - progress)),
Color(0, 0, 0), LAYER_GUI+1);
}
2*SCREEN_HEIGHT * (1.0f - progress)),
Color(0, 0, 0), LAYER_GUI+1);
}