Alternative fix to broken rollovers #54
Fixes broken rollovers found when width or height are different from a power of 2.
It makes use of a conditional expression so that the original algorithm is preserved in case the workaround is not needed.
Edited by Miguel Sánchez Palomino