Lee Brown wrote:

> > for a framebuffer it's straightforward.  keep the entire screen in
> > memory M; everytime the (mouse?)cursor position changes you do this:
> 
> Understood. Thank you. But...
> 
> What if the screen changes behind the cursor?  Say you have a cursor sitting
> there and then a line goes through it.  Now you have a line through the cursor.
> Moreover when the cursor moves there is no line where it's supposed to be.

you need a damage manager that does all the screen updating. For each repair it
needs to check whether it intersects with the cursor region, and if so, it updates
the cursor cache.

In any case, you'd need to redraw the cursor anyway, as else the line would just
appear on top of it.

Stefan

Reply via email to