English Amiga Board

Go Back   English Amiga Board > Coders > Coders. General > Coders. Tutorials

Thread Tools
Old 29 September 2012, 14:31   #1
Zone Friend
Raislin77it's Avatar
Join Date: Jan 2005
Location: italy
Age: 43
Posts: 235
help with blitz basic displayadjust

hi! i have a problem understanding the displayadjust command on blitz basic

in my proggy i have a bitmap of 512 pixels, but i want to display only 256 of it

so displayadjust is my option

here a snippet of code (for aga machines)

BitMap 2,512,256,8
LoadBitMap 2,"title1.iff",0
InitCopList 0,44,256,$10018,8,256,0
DisplayAdjust 0,-8,16,-16,32,-32
DisplayBitMap 0,2,0,0 ; show the title bitmap

but from the screenshot i have ,the image is 1 pxl left
see the red line on the left

also i cannot understand the fetch parameter on displayadjust, nor the others too ehehehe i've experimented a lot

Raislin77it is offline  
Old 09 October 2012, 19:01   #2
A1200 040 SAM440EP 667

AlfaRomeo's Avatar
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 826
The best help you could have about BlitzBasic will be found in this forum:

AlfaRomeo is offline  
Old 13 June 2018, 04:34   #3

Shatterhand's Avatar
Join Date: Jun 2001
Location: Rio de Janeiro / Brazil
Age: 37
Posts: 3,437
I'd like help with this command and unfortunately the forum AlfaRomeo recommended seems to be dead.

Shatterhand is offline  
Old 19 June 2018, 13:57   #4
Registered User

Daedalus's Avatar
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 5,112
The Amiforce.de forum was moved to amiblitz.de some time ago, but there too seems to be all but dead unfortunately.

The DisplayAdjust command is a little bit like voodoo to me, but it's really just setting some registers (so it's the finer points of using the display hardware registers that are the real voodoo). From what I understand, the command adjusts the standard values, so entering 0 for a register leaves it at the default value for a given display setup.

The registers are explained here:

DDFStart and DDFStop
DIWStrt and DIWStop

The fetch width parameter I'm not so sure about, but I suspect it's just the number of bytes to adjust the overall fetch by. For example, with a display window start adjust of +16 and a stop adjust of 0, that makes the display 16 pixels narrower, or two bytes of fetching per row, requiring the fetch width parameter to be -2.
Daedalus is online now  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blitz basic 2 Help Havie Coders. Blitz Basic 30 08 September 2013 10:15
Blitz Basic 2.1 + CD ROM musashi5150 MarketPlace 3 08 July 2009 09:53
blitz basic petza request.Apps 11 08 April 2007 02:49
Blitz Basic 2 anyone? jobro request.Apps 12 28 November 2005 19:15
Blitz Basic 2 LaundroMat Retrogaming General Discussion 5 24 July 2001 09:10

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 15:50.

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