Strange Symbol on center of screen using PyGame with DirectFB

178 views Asked by At

I am using pygame to draw a GUI on tiny SPI LCD mount as /dev/fb1 via directfb.

Whatever I draw, there is a strange symbol display in center of screen. pi logo with strange symbol

green lines with strange symbol

mark of symbol

If I run df_matrix, the strange symbol does not appear.

df_matrix without symbal

If I draw in pygame, then manually open /dev/fb1, write screen data, the strange symbol does not appear.

manual draw to fb without symbol

So, how to get rid of this annoying symbol?

2

There are 2 answers

0
Mouse On BEST ANSWER

To isolate the problem, I have tried many solutions, upgrade pygame from 1.9.6 to 2.0.0.dev12, invalid. upgrade sdl1 to sdl2, invalid. recompile and install directfb 1.7.7, invalid. invoke pygame.mouse.set_visible(False), invalid. export SDL_NOMOUSE=1, invalid.

finally, as Kingsley and Cribber suggested, it must be a mouse cursor, so I dig out the right solution:

add no-cursor to /etc/directfbrc
3
Cribber On

If it is truly the mouse cursor as Kingsley suggested in the comments, you can disable the cursor in pygame with:

pygame.mouse.set_visible(False)