Re: trying to do a blinking text cursor
Jonathan Dearborn <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <CA+DSiHZsZqOn3CgVnP3BQSQdDTzXPYHg9QXeAdx9AnaeeYcfRw@mail.gmail.com> |
Prior rendering artifacts don't appear if you clear the screen each frame, before drawing. I think we're assuming this. Jonny D On Sat, Aug 6, 2016 at 2:18 PM, Naith <[email protected]> wrote: > > > > Jack Andrews wrote: > > > but where do you erase the cursor? Â what if the position changes and the > text is not re-rendered (hold down SDLK_RIGHT) - couldn't you end up with > cursor phantoms left in places when it was not invisible? > > > > Not sure I understand. Please elaborate more on what you mean. > The cursor is never erased. It is rendered whenever the timer value is an > even number and not rendered elsewhere. > > _______________________________________________ > SDL mailing list > [email protected] > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org > > _______________________________________________ SDL mailing list [email protected] http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org