Attached is a modified code that will hopefully get you moving forward again.
It's not complete as I somewhat struggled to understand exaclty what was happening with the maths.
Basically I'm approaching the problem by storing the last x and y of the icon so that when it moves the previous position can be erased.
Some of your code is duplicated such as creating a new instance of drawer etc, you only need do this the once.
Hope this is enough to help you see a way forward.
Regards,
RandomCoder
__________________
Desktop: Pentium D 920 (2.8GHz, 4MB L2 Cache, 800MHz FSB), 1024MB, 256MB Radeon X600, 250GB HD.
Device : Axim X51v XScale 624MHz, 3.7" VGA, 64MB SDRAM, 256MB Flash ROM + 1Gb SD.
"Defeat never comes to any man until he admits it."Josephus Daniels
|