Paint Pixels to Screen via Linux FrameBuffer

前端 未结 7 1759
谎友^
谎友^ 2020-12-01 00:56

I was recently struck by a curious idea to take input from /dev/urandom, convert relevant characters to random integers, and use those integers as the rgb/x-y values for pix

相关标签:
7条回答
  • 2020-12-01 01:41

    You should use fb_fix_screeninfo.smem_len for screensize instead of doing the multiplication yourself. The buffer might be align on 4 bytes or something else.

    screensize = finfo.smem_len;
    
    0 讨论(0)
提交回复
热议问题