diff --git a/src/messages/Image.cpp b/src/messages/Image.cpp index 95abb3bcd..e189d54be 100644 --- a/src/messages/Image.cpp +++ b/src/messages/Image.cpp @@ -100,7 +100,7 @@ namespace detail { void Frames::advance() { - this->durationOffset_ += gifFrameLength; + this->durationOffset_ += GIF_FRAME_LENGTH; this->processOffset(); } diff --git a/src/singletons/helper/GifTimer.cpp b/src/singletons/helper/GifTimer.cpp index c1ad6b734..6f567ea74 100644 --- a/src/singletons/helper/GifTimer.cpp +++ b/src/singletons/helper/GifTimer.cpp @@ -8,7 +8,7 @@ namespace chatterino { void GIFTimer::initialize() { - this->timer.setInterval(gifFrameLength); + this->timer.setInterval(GIF_FRAME_LENGTH); this->timer.setTimerType(Qt::PreciseTimer); getSettings()->animateEmotes.connect([this](bool enabled, auto) { @@ -23,7 +23,7 @@ void GIFTimer::initialize() qApp->activeWindow() == nullptr) return; - this->position_ += gifFrameLength; + this->position_ += GIF_FRAME_LENGTH; this->signal.invoke(); getApp()->windows->repaintGifEmotes(); }); diff --git a/src/singletons/helper/GifTimer.hpp b/src/singletons/helper/GifTimer.hpp index d20d933bc..d24f2d111 100644 --- a/src/singletons/helper/GifTimer.hpp +++ b/src/singletons/helper/GifTimer.hpp @@ -5,7 +5,7 @@ namespace chatterino { -constexpr long unsigned gifFrameLength = 20; +constexpr long unsigned GIF_FRAME_LENGTH = 20; class GIFTimer {