diff options
| author | David Skoland <davidskoland@gmail.com> | 2018-11-16 02:26:47 +0100 |
|---|---|---|
| committer | David Skoland <davidskoland@gmail.com> | 2018-11-16 02:26:47 +0100 |
| commit | 727c39a1df42a5aba8a9c863ee2f05169d204ffa (patch) | |
| tree | a45c0dbf0e30f56d84e01a1f6beb85070827457d /aocharmovie.cpp | |
| parent | 8ffdd2afb84ec483160f156d24cf786165a9506c (diff) | |
small fixes and removing compiler warnings
Diffstat (limited to 'aocharmovie.cpp')
| -rw-r--r-- | aocharmovie.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/aocharmovie.cpp b/aocharmovie.cpp index 180052a4..c3490ce6 100644 --- a/aocharmovie.cpp +++ b/aocharmovie.cpp @@ -75,8 +75,11 @@ void AOCharMovie::play_pre(QString p_char, QString p_emote, int duration) real_duration += m_movie->nextFrameDelay(); m_movie->jumpToFrame(n_frame + 1); } + +#ifdef DEBUG_GIF qDebug() << "full_duration: " << full_duration; qDebug() << "real_duration: " << real_duration; +#endif double percentage_modifier = 100.0; @@ -88,7 +91,10 @@ void AOCharMovie::play_pre(QString p_char, QString p_emote, int duration) if (percentage_modifier > 100.0) percentage_modifier = 100.0; } + +#ifdef DEBUG_GIF qDebug() << "% mod: " << percentage_modifier; +#endif if (full_duration == 0 || full_duration >= real_duration) { |
