Here is a bitmap file:
https://www.dropbox.com/s/zhdvzi0o1qtls3n/ex.bmp?dl=0
And here is a code snippet:
Code: Select all
OpenWindow(0,0,0,640,480,"test")
CanvasGadget(0,0,0,640,480)
LoadImage(0, "ex.bmp")
StartDrawing(CanvasOutput(0))
DrawImage(ImageID(0),10,10)
StopDrawing()
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
If I load the image using the snipped, the leftmost pixel column of the image is rendered as solid red border.
Happens on Ubuntu 17.4 and Linux Mint 18.1, but not on Windows. (all OS at 64 bit, the Ubuntu runs on different computer)
The sample image is in 4-bit. If I re-save it as 24-bit, the issue is gone. But that is not a solution for me, because I can't change the bit depth easily and it wouldn't be useful.
Please help me, how to fix?
Best regards,
Frank