Browsing this Thread:
1 Anonymous Users
AROS, AmigaOS 3.1 and RGB Images. |
||
|---|---|---|
Joined:
2007/12/27 18:39 From Arizona, USA
Group:
Member Posts:
98
![]() |
Well, some years ago I grabbed a Blackjack game off of Aminet and upgraded it to 24 bit graphics. Years later (now) I've finally got it to compile for AROS. Yea, I've had a lot of distractions since then. ;) The AROS version runs fine, at least as far as I can tell, however, the graphics are color shifted. White is yellow. Red is green and so on... the AROS version looks like this:
Posted on: 1/6 17:53
|
|
Transfer
|
||
Re: AROS, AmigaOS 3.1 and RGB Images. |
||
|---|---|---|
|
Joined:
2011/6/30 19:50 Group:
Member Posts:
1648
![]() |
Quote:
EDanaToo wrote: From the dev wiki here here and here. Quote: To draw RGB pixels on truecolors screens you can use cybergraphics.library/WritePixelArray(rectfmt = RECTFMT_RGB or RECTFMT_ARGB or RECTFMT_RGBA). Quote: Pixel and rectformats in AROS cybergraphics always refer to the layout in memory. So RECTFMT_ARGB means 0xAA 0xRR 0xGG 0xBB. And this is so no matter if running on big endian or little endian machine. This is important to know for when running on little endian (x86) machine, because then if you have an ULONG pixel array/buffer where you write ARGB pixels into it using pixel (ULONG) accesses then in memory it will look like 0xBB 0xGG 0xRR 0xAA and you would need to use RECTFMT_BGRA. Quote: This is an endianess thing. On AROS big endian it's exactly the same as in AOS/MOS. Because pixel access/component access/memory layout on big endian machine does not make a difference. If you write a 0xAARRGGBB ULONG to memory it will be 0xAA 0xRR 0xGG 0xBB in memory, too. Same thing. No problem. Would that be suffice for help ?
Posted on: 1/6 19:40
|
|
Transfer
|
||
Re: AROS, AmigaOS 3.1 and RGB Images. |
||
|---|---|---|
Joined:
2007/12/27 18:39 From Arizona, USA
Group:
Member Posts:
98
![]() |
That was more than sufficient, Magorium. That was exactly what I needed. Switching from RECTFMT_ARGB to RECTFMT_BGRA32 gives me exactly the colors I needed.
Thank for the assist. It's appreciated. Ed.
Posted on: 1/7 15:46
|
|
Transfer
|
||
You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.



Transfer







