English Amiga Board


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

 
 
Thread Tools
Old 29 September 2012, 13:31   #1
Raislin77it
Zone Friend
Raislin77it's Avatar
 
Join Date: Jan 2005
Location: italy
Age: 41
Posts: 221
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
why?

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

Raislin77it is offline  
AdSense AdSense  
Old 09 October 2012, 18:01   #2
AlfaRomeo
A1200 040 SAM440EP 667
AlfaRomeo's Avatar
 
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 786
The best help you could have about BlitzBasic will be found in this forum:

http://www.amiforce.de/board.php?boa...n1a93pp4clrfag
AlfaRomeo is offline  
Old 13 June 2018, 03:34   #3
Shatterhand
Warhasneverbeensomuchfun

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

Anyone?
Shatterhand is offline  
Old 19 June 2018, 12:57   #4
Daedalus
Registered User

Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 2,935
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 offline  
AdSense AdSense  
 


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 09:15
Blitz Basic 2.1 + CD ROM musashi5150 MarketPlace 3 08 July 2009 08:53
blitz basic petza request.Apps 11 08 April 2007 01:49
Blitz Basic 2 anyone? jobro request.Apps 12 28 November 2005 18:15
Blitz Basic 2 LaundroMat Retrogaming General Discussion 5 24 July 2001 08: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 17:12.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.05828 seconds with 15 queries