mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
Fixed TextListComponent marquee running at 2x speed.
Adjusted marquee constants.
This commit is contained in:
parent
a093890604
commit
003af694b2
|
@ -84,9 +84,9 @@ protected:
|
|||
virtual void onCursorChanged(const CursorState& state);
|
||||
|
||||
private:
|
||||
static const int MARQUEE_DELAY = 900;
|
||||
static const int MARQUEE_SPEED = 16;
|
||||
static const int MARQUEE_RATE = 3;
|
||||
static const int MARQUEE_DELAY = 2000;
|
||||
static const int MARQUEE_SPEED = 8;
|
||||
static const int MARQUEE_RATE = 1;
|
||||
|
||||
int mMarqueeOffset;
|
||||
int mMarqueeTime;
|
||||
|
@ -277,7 +277,6 @@ void TextListComponent<T>::update(int deltaTime)
|
|||
Eigen::Vector2f textSize = mFont->sizeText(text);
|
||||
|
||||
//it's long enough to marquee
|
||||
mMarqueeTime += deltaTime;
|
||||
if(textSize.x() - mMarqueeOffset > mSize.x() - 12 - (mAlignment != ALIGN_CENTER ? mHorizontalMargin : 0))
|
||||
{
|
||||
mMarqueeTime += deltaTime;
|
||||
|
|
Loading…
Reference in a new issue