flat assembler
Message board for the users of flat assembler.
Index
> MenuetOS > Colors are in a wrong order RGB -> BGR in 0.77-3.0d |
Author |
|
Octavio 14 Jun 2004, 08:02
[quote="mhack"]Hello guys!
In the kernel 0.77-3.0d - looks like Put Image uses reversed colors. It says in description that memory structure should be RRGGBBRRGGBB.. but it looks like it is really is: BBGGRRBBGGRR.. Question will that be fixed in next version or should I develop my program to use that order? the x86 architecture uses a special byte ordering if you want a pixel with r=1 g=2 b=3 the 32bit number is 10203h rgb but is stored in memory like: db 3,2,1,0 bgr thats why in the video ram blue is first. |
|||
14 Jun 2004, 08:02 |
|
bloglite 14 Jun 2004, 10:37
Hi,
The correct term for reverse byte order is "little endian" A convention used since the beginning. **** A Note to all newcomers: Please read the available info on these forums before placing new posts. 0. It might answer your question. 1. It makes your questions make more sense to everybody here. 11. Reading is good for you ! Also if you have not read the Documentation posted on the official site; Please do. It helps in reducing the (repetitive) answering of some questions unnecessarily. It also gives the Author /DevTeams and others more time to write amazing stuff. RTFD, Mark |
|||
14 Jun 2004, 10:37 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.