[NDS] Fix background gap bug

- But it need some refactoring in the code. There is another bug that if
ther char go at the maximum W or H of the map, it gain an offset of +1.