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
Thread Post new topic Reply to topic
mhack



Joined: 08 Jun 2004
Posts: 10
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?

(You can check this by exporting a virtual screen picture to Adobe Photoshop .raw,
all colors will be shifted. Also you could write a simple program to display memory by byte).

Another thing I would like to see is a system wide text clipboard atleast for TinyPad so you can copy text between open windows.

Also I would like to notice that print numbers and text should be made to pring not only on window but also on any image.

Otherwise there is no way to have real time graphics and text output in the same area.

Thank you,
mhack
Post 08 Jun 2004, 12:56
View user's profile Send private message Reply with quote
Octavio



Joined: 21 Jun 2003
Posts: 366
Location: Spain
Octavio
[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.
Post 14 Jun 2004, 08:02
View user's profile Send private message Visit poster's website Reply with quote
bloglite



Joined: 21 Feb 2004
Posts: 109
Location: East Tennessee U.S.A.
bloglite
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
Post 14 Jun 2004, 10:37
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.