2

Up to and including Raspbian Stretch, I could use a hacked SDL library called SDL12-kms-dispmanx by a developer called vanfanel to run SDL 1.2 code from the console without X. (See here: https://github.com/vanfanel/SDL12-kms-dispmanx)

Now, with Buster, this fails because the dispmanx calls seem to return an incorrect screen size. This seems to be a firmware thing, since the same problems happen when I install the newest firmware on a Stretch based system.

Is there any alternative that works on Buster and that doesn't involve either porting the code to SDL 2 (which would indeed be better, but unfortunately I don't have the time for that) or running X?

TeaRex
  • 103
  • 1
TeaRex
  • 23
  • 2

1 Answers1

1

SDL 1.2 can be build without X dependencies if you specify --enable-video-fbcon or --enable-video-directfb when you configure it. This should work with original SDL sources, but trying out https://github.com/vanfanel/SDL-1.2.15-raspberrypi seems to be a good idea, since it promises "native 2D API driver", which may mean better performance.

Don't forget to set SDL_VIDEODRIVER variable accordingly.

Dmitry Grigoryev
  • 28,277
  • 6
  • 54
  • 147