FunKey-Project / FunKey-OS

Buildroot-based embedded Linux OS for the FunKey S retro-gaming console
https://www.funkey-project.com/
GNU General Public License v2.0
242 stars 65 forks source link

[SDL] Image viewing is broken since commit 9a181f4 #46

Closed DrUm78 closed 2 months ago

DrUm78 commented 1 year ago

Since the commit https://github.com/FunKey-Project/SDL-1.2/commit/9a181f478b9975bc4b4f858a411ff6d313736f62 for SDL 1.2, image viewing in Commander is broken for file formats like .png and .jpg.

Error message in the logs is: loadImageToFit: ioctl(FBIOPAN_DISPLAY) failed

Steps to reproduce:

  1. Take any screenshot with Fn+up d-pad for instance
  2. Try to open it with Commander
  3. Notice that it fails and shows the raw content of the image file (see attached screenshot)

IMG_0210

DrUm78 commented 2 months ago

I fixed it a very dirty but working way by forcing the old SDL lib when executing Commander: https://github.com/DrUm78/commander/commit/5899bee4efc13e2c10cc38f4be69df358a4cefc3 So until a proper fix is pushed, I'll keep this workaround.