It is currently Fri Jun 22, 2018 12:57 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: RGB() and RGBA() different results x86 and x64 (PB 5.62)
PostPosted: Mon Feb 12, 2018 1:10 pm 
Offline
Addict
Addict

Joined: Sun Sep 07, 2008 12:45 pm
Posts: 3863
Location: Germany
Hi,
Code:
Debug Hex(RGBA(-1, 20, 20, 255))

Returns FFFFFFFFFFFFFFFF with PB x64
and FFFFFFFFFF1413FF with PB x86
Code:
Debug Hex(RGB(-1, 20, 20))

Returns FFFFFFFFFFFFFFFF with PB x64
and 1413FF with PB x86

At least it should return the same result for each architecture.

Bernd


Top
 Profile  
Reply with quote  
 Post subject: Re: RGB() and RGBA() different results PB 5.62 x68 and x64
PostPosted: Mon Feb 12, 2018 1:14 pm 
Offline
Addict
Addict

Joined: Mon Feb 16, 2015 2:49 pm
Posts: 1423
infratec wrote:
Code:
Debug Hex(RGBA(-1, 20, 20, 255))

The first parameter is -1, but the docs say it has to be 0-255.


Top
 Profile  
Reply with quote  
 Post subject: Re: RGB() and RGBA() different results x86 and x64 (PB 5.62)
PostPosted: Mon Feb 12, 2018 1:19 pm 
Offline
Addict
Addict

Joined: Sun Sep 07, 2008 12:45 pm
Posts: 3863
Location: Germany
True,

but the result should still be the same on x64 and x86

The -1 was only an example, the value comes out of a calculation.
A bugfix is:
Code:
Debug Hex(RGB(-1 & $FF, 20, 20))

Bernd


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye