04 September 2020, 13:52 | #1 |
Registered User
Join Date: Nov 2019
Location: Celle / Germany
Posts: 145
|
"half" the screen width with displaylib?
First, I am a noob in chipset-related graphics programming!
I'd like to setup a display like 160x100 for a simple voxelspace engine demo (AGA). Currently I use displaylib the standard way: #display_width = 160 #display_height = 100 #display_depth = 8 InitCopList 0,44,#display_height,$10000 + #display_depth,8,256,0 CreateDisplay 0 DisplayPalette 0,0 With th8s code I get the bitmap drawn twice. How do I get copper to get the bitmap fullscreen instead of the bitmap twice? Last edited by Honitos; 04 September 2020 at 18:28. |
05 September 2020, 00:04 | #2 |
Gets there in the end...
Join Date: Sep 2005
Location: Wales
Posts: 863
|
I'm not sure that can be done. Doubling pixels vertcally maybe but not horizontally.
Could one of the chunky libraries be of use instead? |
05 September 2020, 03:39 | #3 |
Registered User
Join Date: Mar 2018
Location: Austria
Posts: 617
|
I never used DisplayAdjust myself, but here Master484 explains how to reduce screen width.
Hope this helps http://eab.abime.net/showpost.php?p=1390870&postcount=6 |
05 September 2020, 16:26 | #4 |
Registered User
Join Date: Nov 2019
Location: Celle / Germany
Posts: 145
|
That helps as he describes at least a bit how DisplayAdjust works, thanks.
|
05 September 2020, 16:56 | #5 |
Registered User
Join Date: Mar 2018
Location: Austria
Posts: 617
|
I just tried it out.
- works fine - having a bitmap with 320px width you dont need additional parameters to center it on the display - usage is cumulative. Calling it a second time will narrow the display additionally by the amount specified. Edit: and in WinUae 3.6.0 I had to set Filter from "automatic scaling" to "no scaling". Otherwise WinUae tried to compensate the change (at least partially). Last edited by Nightshft; 05 September 2020 at 17:52. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Diabolik" & "Dylan Dog" & "Tex" & "Time Runners" series | DamienD | request.Old Rare Games | 20 | 21 July 2022 16:58 |
"Voices8" 8 Channel Soundtracker "DemoSongI" song - "This is the Amiga with 8 Voices" | DemosongIHunter | request.Music | 45 | 23 May 2022 20:07 |
[FOUND: PHANTASIE III!] 2D RPG game with map screen, "black background combat screen" | Artifex 28 | Looking for a game name ? | 1 | 22 May 2014 17:42 |
"Reminder "Lincs Amiga User Group aka "LAG" Meet Sat 5th of January 2013" | rockape | News | 4 | 30 January 2013 00:06 |
RTG "full-screen" vs. "full windowed" - advantages/disadvantages? | ral-clan | support.WinUAE | 2 | 19 April 2011 01:15 |
|
|