Re: trying to do a blinking text cursor

Jack Andrews <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <CAJvHTNwaXdfSuoi5cAY3B_QJsA8k=gO=L037sbts9kng7DUuDw@mail.gmail.com>
> See my answer above for a simple solution on how you can do it.

thanks for your code, naith.  i see my error in my proposed code - having
two timers.
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?

On 7 August 2016 at 03:22, Naith <[email protected]> wrote:

>
>
>
> Jack Andrews wrote:
>
>
> So would I have a texture which is the text without the cursor, and a
> texture with only cursor then
>
>
>
>
> See my answer above for a simple solution on how you can do it.
>
> _______________________________________________
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.