I have been using the excellent openvg lib by ajstarks and have come across a few problems, which I hope can be resolved.
1. For example - I create a full screen graphics window in red and set the font to 24 point white (both alpha = 1.0) and draw a text string at a set place on the screen. To erase that particular text I change its colour to the same as the screen (red) and redraw it at exactly the same place.
The string is, in effect, erased, but you can still see a faint outline of the font shapes in white.
You will notice a related problem if you draw the string in white on a fresh red screen then redraw the same string still in white at the same place. The characters should stay the same, but on the second drawing they thicken.
It is a though a 2nd and subsequent drawing of the same text (same parameters) at the same place on the screen is being drawn slightly different to the 1st draw.
I would like to fix the issue so that I can erase sections of text leaving other prompts unaffected.
2. I boot the Raspberry Pi into the desktop and from a separate PC, linked by ssh, I run my graphics program and everything (apart from the above) is fine. If I also use the keyboard on the Raspberry Pi it is also fine (I scan both keyboards and treat them the same within the program). However, if I do not touch either keyboard for some minutes and then touch the Raspberry Pi's keyboard, the graphics display turns off and the desktop reappears.
If I constantly use the keyboard there is no problem - it is only when it is left for a short time.
I wondered if it was the Raspberry Pi going into sleep mode and so I have disabled it (supposedly), yet the problem persist.
Does anyone have any pointers or is there a way to keep the 'pinging' something from within my program to stop this timeout happening and returning to the desktop.
Thanks for looking