As it turns out, setimg is actually based on NDS adapted coordinates by this formula: x = x * (width / 256) y = y * (height / 192). It appears that he was lazy when the Android port was made, and adapted coordinates got used rather than native in conversions.