Problem with BMP brushes on AROS

Discuss any general programming issues here
Post Reply
Mazze
Posts: 69
Joined: Thu May 06, 2010 8:08 pm

Problem with BMP brushes on AROS

Post by Mazze »

This sample...

Code: Select all

@DISPLAY 1, {Color = #SILVER}

CreateBrush(1, 50, 50, #GREEN)
SelectBrush(1)
Circle(0, 0, 25, #RED)
EndSelect
DisplayBrush(1, 0, 0)

SaveBrush(1, "tst.bmp")
SaveBrush(1, "tst.png", #BLACK, #IMGFMT_PNG)

LoadBrush(2, "tst.bmp")
DisplayBrush(2, 50, 0)

LoadBrush(3, "tst.png")
DisplayBrush(3, 100, 0)

WaitLeftMouse()
... causes on AROS a corrupt picture for the BMP format. I guess that AROS' BMP datatype is buggy. Please, confirm if this works for "the others".

Image
User avatar
Allanon
Posts: 742
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Re: Problem with BMP brushes on AROS

Post by Allanon »

Hi Mazze,
I've done a quick test on windows, no problems here:

Image
----------------------------
[Allanon] Fabio Falcucci | GitHub (leaving) | Gitea (my new house) | My Patreon page | All my links
User avatar
airsoftsoftwair
Posts: 5887
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Problem with BMP brushes on AROS

Post by airsoftsoftwair »

@Mazze: Open the *.bmp file with Multiview to see if it's a fault of the AROS bmp.datatype.
Mazze
Posts: 69
Joined: Thu May 06, 2010 8:08 pm

Re: Problem with BMP brushes on AROS

Post by Mazze »

Allanon wrote:Hi Mazze,
I've done a quick test on windows, no problems here:
Thanks.
Mazze
Posts: 69
Joined: Thu May 06, 2010 8:08 pm

Re: Problem with BMP brushes on AROS

Post by Mazze »

Andreas wrote:@Mazze: Open the *.bmp file with Multiview to see if it's a fault of the AROS bmp.datatype.
Oh, yes. Same corruption. /me kicks butts of AROS developers :lol:
Mazze
Posts: 69
Joined: Thu May 06, 2010 8:08 pm

Re: Problem with BMP brushes on AROS

Post by Mazze »

BMP datatype has been fixed in AROS by Neil Cafferkey.
Post Reply