Josu Onandia wrote:
I would like to 'gray' the screen, as in Windows when you shut-down. Can anyone suggest an efficient way to do this?.
What about ANDing the screen with a pattern of alternating bits?
Hope this helps,
Peter
Thank you, Peter. It works perfectly. But now I've run into another problem: I'm applying the pixmap to a SubContext, not to the whole screen. It seems that the function GrPatternFilledBox doesn´t take this into account, and starts painting at left corner of the screen, not of the SubContext.
I suspect that the line (file patfbox.c, function GrPatternFilledBox):
(*bltfun)( &CURC->gc_frame,xpos,y1, &p->gp_pxp_source,xcuroff,yoff,fillw,fillh, p->gp_pxp_oper );
should be:
(*bltfun)( &CURC->gc_frame, xpos+CURC->gc_xoffset, //adding the subcontext offset y1+CURC->gc_yoffset, //adding the subcontext offset &p->gp_pxp_source,xcuroff,yoff,fillw,fillh, p->gp_pxp_oper );
I've implemented the change, and it works. I wonder if it's a bug or it's something else I'm doing wrong.
Josu