[VM][Draw] Fix palette calculation, it makes runaway on Dragon-Buster :-(