Red left border in CanvasGadget

Linux specific forum
User avatar
Franky666
User
User
Posts: 17
Joined: Wed Jan 09, 2008 10:43 pm
Location: Germany

Red left border in CanvasGadget

Post by Franky666 »

Hello,

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
(Just test code. Some if's are missing, but this has nothing to do with my problem)

If I load the image using the snipped, the leftmost pixel column of the image is rendered as solid red border. :cry:

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? :D

Best regards,
Frank
User avatar
Kiffi
Addict
Addict
Posts: 1353
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: Red left border in CanvasGadget

Post by Kiffi »

confirmed. (Linux Mint 18.3 Cinnamon 64-bit)

Image

Greetings ... Peter
Hygge
User avatar
Franky666
User
User
Posts: 17
Joined: Wed Jan 09, 2008 10:43 pm
Location: Germany

Re: Red left border in CanvasGadget

Post by Franky666 »

How to workaround? I need a replacement for CatchImage() :mrgreen:
Post Reply