fixed bug: lines drawn wrong on bigger displays

Integer overflow while storing lines coordinates because of wrong
variable type used.