I know it's not about games.

Are you using Bitblt or TransparentBlt by any chance?