Help with modulo. 25%10 always rounds off to 6.

Can you post your code of updateDisplay(x, y); ?