reduce time for scrolling text from 1.5s to 1s.
This commit is contained in:
1 parent
7cf36cd25f
commit
8dfb9b9ba6
1 file changed
+1
-1
@@ -42,7 +42,7 @@ void ScrollingText::Draw(NVGcontext* vg, bool focus, float x, float y, float w,
|
|||||||
|
|
||||||
if (!m_text_xoff) {
|
if (!m_text_xoff) {
|
||||||
m_tick++;
|
m_tick++;
|
||||||
if (m_tick >= 90) {
|
if (m_tick >= 60) {
|
||||||
m_tick = 0;
|
m_tick = 0;
|
||||||
m_text_xoff += scroll_amount;
|
m_text_xoff += scroll_amount;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user