Page 1 of 1

Blinking l in Polle in with drawGlyphs on HDMI monito

Posted: Thu Mar 06, 2014 6:19 pm
by hanzelpeter
Hello.

I am trying to implement a library to draw texts using OpenVG with DrawGlyphs.
I am doing it at home with ssh + dispmanx_vnc to see it on my laptop.
The source code is attached. You need to add arial.ttf font to make it work and compile with makeit_raspi.

So on my home laptop text is normally shown and nothing blinks. I tried it at work with HDMI monitor and suprisingly the second l in Polle word was blinking. Only this one letter. I tried to change the font size and sometimes it blinks and sometimes not.
I changed text to Hello the second l blinks, changed to HeAAo and it DOESN'T blink.

I also tried it on linux on x86 pc and it is not blinking.

Does someone have an idea what can be a problem?

Re: Blinking l in Polle in with drawGlyphs on HDMI monito

Posted: Fri Mar 07, 2014 10:01 am
by hanzelpeter
I tried to update raspbian, but it didn't help.

I tried also to play with getchar after swapBuffers and it starts to do funny stuff.
It waits for keypress and "l" is not displayed, I press ENTER and ENTER and "l" is still not displayed.
But I press "SPACE" (one or two times) and then ENTER and voila "l" is displayed, again do "ENTER" not displayed.
The tried again with space, enter and displayed.

I suspect it has something to do with console/framebuffer behind dispmanx_window.

Re: Blinking l in Polle in with drawGlyphs on HDMI monito

Posted: Sat Mar 08, 2014 5:55 pm
by ajstarks
Using a higher-level library may help you: http://github.com/ajstarks/openvg

Re: Blinking l in Polle in with drawGlyphs on HDMI monito

Posted: Fri Mar 14, 2014 3:53 pm
by hanzelpeter
The funny thing is I have tried it with full screen on text and nothing blinks. But when I just write out "Hello" the second "l" blinks. Crazy.