pos[2] is limited between 0 and 65535

fix the black screen issue for Toaru Majutsu no Index, and Toaru Kagaku no Railgun.