For that the correct Color Byte Order is important.
Windows RGBA : no doubt!
My opinion was MAC and Linux BGRA!
But seems not correct. It's RGBA too!
We tested a time ago here: viewtopic.php?p=634650&hilit=color+byte+order#p634650
To be sure, I made a better ColorByteOrder Test.
Can anyone Check on Linux and Mac
Code: Select all
EnableExplicit
Procedure.s GetSystemColorOrderString()
Protected ret$, OS$
Protected I, col.l, cc.c
col = RGBA('R','G','B','A')
For I = 0 To 3
; read color order from memory
cc = PeekA(@col+I)
ret$ = ret$+Chr(cc)
Next
ProcedureReturn ret$
EndProcedure
Define OS$, ColorOrder$ = GetSystemColorOrderString()
CompilerSelect #PB_Compiler_OS
CompilerCase #PB_OS_Windows
OS$="Windows"
CompilerCase #PB_OS_Linux
OS$="Linux"
CompilerCase #PB_OS_MacOS
OS$="MacOS"
CompilerEndSelect
Debug "System Color Order on " + OS$ + " = " + ColorOrder$

