Hi Waldemar
GrSetDriver("VESA gw 800 gh 600 nc 256"); GrSetMode(GR_default_graphics);
First, this is not correct, the Win32 port does not have a VESA driver. Best use this that is OK for all platforms:
GrSetMode(GR_width_height_bpp_graphics,800,600,8 ); // for 8bpp GrSetMode(GR_width_height_bpp_graphics,800,600,24 ); // for 24bpp
But this is not the problem. The problem is a known bug in the 8bpp win32 driver, it operates with colors instead index colors to make the xor-operations. The problem is big, is a design error. But the 24 bpp driver works OK with your test.
Greetings, M.Alvarez