[comp.sys.amiga] Question about extra large screens

bob@altera.UUCP (02/26/87)

Somebody please tell me how to create a screen that fills the whole display,
including the borders? I have found that you are able to fill the top, bottom,
and left borders by setting the DxOffset and DyOffset members of the View
structure to lower values, and specifying larger width and height values for
the display, but there seems to be no way of setting the right edge such as to
remove the right border. Am I missing something here? After pouring over the
RKMs and hardware manual for countless hours, and doing some "experimental 
hacking", I came to the conclusion there was no way of doing this. I ran the
Preferences program because I had remembered that you could adjust the
centering of the display. Sure enough, preferences does not allow you to move
the screen all the way to the right edge! 

If somebody knows of a way to remove this right hand border, I would like to
hear about it. One of the reasons I bought an Amiga was play around with 
recording 3D graphics on a VCR. That border on the right side of the screen
will be a nuisance for such an application.

Please forgive me if this is a stupid question, and thanks in advance for any
help :*O



"I'd rather have a bottle in front of me than a frontal lobotomy!"

carolyn@cbmvax.UUCP (03/03/87)

In article <29@altera.UUCP> bob@.UUCP (Bob Duncan) writes:
>Somebody please tell me how to create a screen that fills the whole display,
>including the borders? I have found that you are able to fill the top, bottom,
>and left borders by setting the DxOffset and DyOffset members of the View
>structure to lower values, and specifying larger width and height values for
>the display, but there seems to be no way of setting the right edge such as to
>remove the right border...

I don't know if you can do it with a screen.  In DPaint II, Dan Silva gets
a full video display by using a ViewPort instead of a screen.  I think he
subtracts 1/2 of the extra width/height he needs for the View's DxOffset
and DyOffset, and creates a ViewPort with the desired width/height.

Give it a try.  For an example of creating a ViewPort, see the EA IFF
example "ShowILBM.c".

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Carolyn Scheppner -- CBM   >>Amiga Technical Support<<
                     UUCP  ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn 
                     PHONE 215-431-9180
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

hadeishi@husc7.UUCP (03/03/87)

In re: using overscan Intuition screens.

	Yes, you can do it with Intuition.  Simply do a Forbid(),
set the screen->TopEdge = viewport->DyOffset = whatever,
screen->LeftEdge = viewport->DxOffset = whatever, screen->Width =
viewport->DWidth = whatever, screen->Height = viewport->DHeight = wahtever,
then Permit(), MakeScreen(screen), RethinkDisplay().

				-Mitsu

papa@bacall.UUCP (03/03/87)

> In article <29@altera.UUCP> bob@.UUCP (Bob Duncan) writes:
> >Somebody please tell me how to create a screen that fills the whole display,
> >including the borders? I have found that you are able to fill the top, bottom,
> >and left borders by setting the DxOffset and DyOffset members of the View
> >structure to lower values, and specifying larger width and height values for
> >the display, but there seems to be no way of setting the right edge such as to
> >remove the right border...
 In article <1481@cbmvax.cbmvax.cbm.UUCP> Carolyn Scheppner writes:
> I don't know if you can do it with a screen.  In DPaint II, Dan Silva gets
> a full video display by using a ViewPort instead of a screen.  I think he
> subtracts 1/2 of the extra width/height he needs for the View's DxOffset
> and DyOffset, and creates a ViewPort with the desired width/height.
>

It is no problem even with a screen.  I just used it in my own A-Talk Plus
program that does Tek 4014 allowing a custom screen to be 700x440.  Since I do
not change preferences in my program, the user has to move the upper left
corner using the Preferences "centering" gadget.  On the other hand it can be
done by the program itself, as follows:

GetPrefs()
save DxOffset and DyOffset locally,
reset DxOffset and DyOffset in the structure returned by Preferences
SetPrefs()
/* do your own things with the new screen */
GetPrefs()
restore the old DxOffset and DyOffset
SetPrefs()

Note that I left out all the parameters of GetPrefs and SetPrefs.  If you 
cannot find docs about SetPrefs, it is at the very end of the Intuition 
manual.

-- Marco
   (Felsina Software)
 

hadeishi@husc7.UUCP (03/04/87)

In re: changing DxOffset, DyOffset for overscan displays:

	This is a rather nitpicky point, but it is even not
necessary to use SetPrefs() to move the Intuition View when you
want to use overscan; just adjust your overscan coordinates
appropriately to the values you get with GetPrefs.  This might
break if the user runs Preferences and moves the screen in the
middle of your program, but you could catch that with a NEWPREFS
message and anyway that is highly unlikely.  Still, I feel it is
better to avoid changing the user's overscan settings "for him";
just as easy to do the arithmetic.

				-Mitsu