English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 04 September 2020, 13:52   #1
Honitos
Registered User
 
Honitos's Avatar
 
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.
Honitos is offline  
Old 05 September 2020, 00:04   #2
Coagulus
Gets there in the end...
 
Coagulus's Avatar
 
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?
Coagulus is offline  
Old 05 September 2020, 03:39   #3
Nightshft
Registered User
 
Nightshft's Avatar
 
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
Nightshft is offline  
Old 05 September 2020, 16:26   #4
Honitos
Registered User
 
Honitos's Avatar
 
Join Date: Nov 2019
Location: Celle / Germany
Posts: 145
That helps as he describes at least a bit how DisplayAdjust works, thanks.
Honitos is offline  
Old 05 September 2020, 16:56   #5
Nightshft
Registered User
 
Nightshft's Avatar
 
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.
Nightshft is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:19.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08205 seconds with 13 queries