Hi! I think that the problem is the ingame cursor. It can be a hardware-cursor or a software-cursor. In games with softwarecursors you will always get the colorvalue of the cursor itself and not of the pixel underneath the cursor. In some games you can change the cursor in the options menu.