Index: trunk/doc/developer/hid_render_comp.html =================================================================== --- trunk/doc/developer/hid_render_comp.html (revision 17270) +++ trunk/doc/developer/hid_render_comp.html (revision 17271) @@ -105,5 +105,24 @@
  • use an empty function for .use_mask for now +

    XOR drawing

    +

    +XOR draw is used as a mean to make an object always visible, no matter +over what background it is drawns. It is not used as a cheap draw/erase +mechanism, so HIDs are free to implement it with a different algorithm - as +long as it is guaranteed that objects drawn on the same colored background +will stick out. +

    +There are two places XOR draw takes place: +

    +

    +In both cases the drawing mode is set to PCB_HID_COMP_POSITIVE_XOR, which does +not clear the direct flag. The GC that is used for drawing the actual +objects also has its xor mode set. +