FunKey-OS icon indicating copy to clipboard operation
FunKey-OS copied to clipboard

[SDL] Image viewing is broken since commit 9a181f4

Open DrUm78 opened this issue 2 years ago • 2 comments

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 avatar Jul 23 '23 13:07 DrUm78

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.

DrUm78 avatar Aug 25 '24 17:08 DrUm78

I reopened it as my fix is only a workaround.

DrUm78 avatar Mar 30 '25 17:03 DrUm78