DF-2288. Fix invalid tilemask drawing in Win32 project