26 July 2017, 14:06 | #21 | |
Registered User
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
|
Quote:
I'd like to be friends with the OS for as long as possible, so I'll just use the priority for now -- it seems to work, after all. Also, most users probably won't appreciate my demo leaving their system in an unstable state.. |
|
26 July 2017, 14:11 | #22 |
Registered User
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
|
Thanks for the pointers, I may look into that sometime. It's a really minor annoyance, though, so I probably won't bother either. There's still a lot of way more fun stuff on my todo list..
|
26 July 2017, 19:29 | #23 |
Registered User
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
|
Update: the copper bar now spans the whole vertical range of the screen.
As mentioned earlier, I was annoyed that I had some hard coded numbers in my source regarding the first (0x2b, anyone?) and last visible/copper-renderable lines on the screen. I got rid of them using some values in the View/Port structure in GfxBase. These are the relevant properties: Code:
DWidth = GfxBase->ActiView->ViewPort->DWidth; DHeight = GfxBase->ActiView->ViewPort->DHeight; DxOffsetV = GfxBase->ActiView->DxOffset; DyOffsetV = GfxBase->ActiView->DyOffset; Code:
lineTop = DyOffsetV + 1; // use +1 for caution lineBottom = DHeight + DyOffsetV - 1; // use -1 for caution nrLines = lineBottom - lineTop + 1; As mentioned earlier, I'm testing this on an Amiga Forever emulated A1200, and also on a real A1200. Both have their screen modes set to high-res PAL, but I do get different numbers (*) from the View/Port structures. Like I said, it seems to work, but I can't say I really understand it. It would be nice if somebody could elaborate a bit more on these numbers. The docs (http://amigadev.elowar.com/read/ADCD...ED.html#line63) aren't very helpful, unfortunately. (*) AF emulation: DWidth, DHeight: 640, 256 DxOffsetV, DyOffsetV: 129, 44 Real A1200: DWidth, DHeight: 724, 282 DxOffsetV, DyOffsetV: 93, 30 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Combining copper scrolling with copper background | phx | Coders. Asm / Hardware | 16 | 13 February 2021 12:41 |
Best way to mix blitting with copper and copper effects | roondar | Coders. Asm / Hardware | 3 | 12 September 2016 13:12 |
copper ? | turrican3 | Coders. Asm / Hardware | 10 | 27 January 2016 09:10 |
Blitter using the copper... | h0ffman | Coders. Asm / Hardware | 9 | 23 February 2012 08:25 |
Understanding the Copper | BippyM | Coders. Tutorials | 38 | 04 September 2010 12:18 |
|
|