git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
movieplayer_select.patch by Moritz Venn
[enigma2.git]
/
lib
/
gui
/
ewidgetanimation.cpp
diff --git
a/lib/gui/ewidgetanimation.cpp
b/lib/gui/ewidgetanimation.cpp
index 3912d592c0791e4679ee6ea27795fb690cec3517..a31f2ed450bef29f8508d532a25757312e5062e6 100644
(file)
--- a/
lib/gui/ewidgetanimation.cpp
+++ b/
lib/gui/ewidgetanimation.cpp
@@
-19,16
+19,24
@@
void eWidgetAnimation::tick(int inc)
m_active = 0;
m_move_current_tick = m_move_length;
}
m_active = 0;
m_move_current_tick = m_move_length;
}
- int xdiff = m_move_end.x() - m_move_start.x();
- int ydiff = m_move_end.y() - m_move_start.y();
+ m_move_start = m_widget->position();
+
+ int xdiff = m_move_start.x() - m_move_end.x();
+ int ydiff = m_move_start.y() - m_move_end.y();
+
+ xdiff *= 31; xdiff /= 32;
+ ydiff *= 31; ydiff /= 32;
+
+ #if 0
xdiff *= m_move_current_tick;
xdiff /= m_move_length;
ydiff *= m_move_current_tick;
ydiff /= m_move_length;
xdiff *= m_move_current_tick;
xdiff /= m_move_length;
ydiff *= m_move_current_tick;
ydiff /= m_move_length;
+ #endif
- ePoint res(m_move_
start.x() + xdiff, m_move_start
.y() + ydiff);
+ ePoint res(m_move_
end.x() + xdiff, m_move_end
.y() + ydiff);
m_move_current_tick += inc;
m_move_current_tick += inc;