13 November 2019, 13:49 | #1 |
Registered User
Join Date: Mar 2018
Location: Austria
Posts: 617
|
AGA Mode 640x200 (or also 640x256)
Hey guys,
just a little problem showing a picture in Blitz mode (coplist display). I just want to show an image which is 640x200x256. So the display mode should be AGA, hires, no interlace. and it nearly works, but I can't get the colors right - the Palette is messed up. Code:
WBStartup ;create bitmap 0 BitMap 0,640,256,8 filen$="dh1:assets/bhc/bhc2b-aga.iff" ;normal 640x200x256 aga picture ;looks fine in dopus and dpaint LoadBitMap 0,filen$,0 ;load file to bitmap 0 and palette 0 BLITZ ;define display flgs.w = $10000+ $1000+$100+8; ;in my understanding: ;$10000 aga colors ;$1000 fetch mode 1, needed because of hires ;$100 hires (640 wide) ;8 bitplanes InitCopList 0, 44,256,flgs, 8, 256, 0 ; cl y h type spr cols cust ;DisplayControls 0, 4,$0c00, $00 ;experimental, didnt help DisplayBitMap 0,0 DisplayPalette 0,0 ;use palette 0 at coplist 0 CreateDisplay 0 ;show it MouseWait End It's like half of the colors are ok and the other half is completely wrong. Do I need DisplayControls to make changes to the palette - or where's the bug here? Thanks! PS: i've already read the thread AGA Mode 640 x 400. |
13 November 2019, 14:19 | #2 |
Registered User
Join Date: Sep 2008
Location: Gainesville U.S.A.
Posts: 771
|
I think flgs needs to be long since it exceeds 16 bits.
|
13 November 2019, 14:33 | #3 |
Registered User
Join Date: Mar 2018
Location: Austria
Posts: 617
|
Hah! That was it! Thanks a lot!!
Picture shows up perfectly now. What a stupid mistake - such a classical "bug". If you assume the problem to be in a or b you won't even take a look at c. And I went as far as playing around with "DisplayControls" |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vertically stretched icons in 640x256 | R-Typer | support.Apps | 4 | 30 December 2018 20:07 |
AGA Mode 640 x 400 | rcman | Coders. Blitz Basic | 16 | 24 December 2018 02:13 |
640x256 HAM8 mode init | milikabdp | Coders. Asm / Hardware | 2 | 25 October 2017 21:21 |
Promoting 640x200 with P96 | MagerValp | support.Apps | 1 | 06 September 2009 09:26 |
What's the best screen mode for an AGA shoot-um-up | NovaCoder | Coders. General | 5 | 09 January 2009 13:19 |
|
|