[uae] Re: Mission: Adjust e-uae for convenient HTPC use

  • From: Richard Drummond <evilrich@xxxxxxxxxxxxxx>
  • To: uae@xxxxxxxxxxxxx
  • Date: Wed, 11 Jul 2007 02:07:55 -0400

Hi Daniel

On Saturday 07 July 2007 14:11:13 daniel åkerud wrote:
> Richard, I need some help. In gfxsdl.c, how do you find out the actual
> current amiga screen width/height and also the width of the borders (seems
> not to start drawing at (0,0))? I currently have it #defined, and it works
> in many games but not all (seems to change...). I'm not well versed with
> amiga hardware but it seems it doesn't only have one resolution :-)

The graphics driver doesn't know these things. It simply gives the drawing 
code a buffer of dimensions that the user requested. Amiga software varies in 
what is considered to be the origin of the screen for drawing. Point (0,0) 
typically would be outside the top-left hand corner on many televisions/video 
monitors, so most software doesn't use that as the origin (unless you are 
using an overscan display mode).

One way to get UAE to start drawing the pixels of the Amiga screen at (0,0) in 
it's emulated display is to give it a buffer that is smaller than full 
overscanned screen size (which is 768x568), say 640x480, and use the 
gfx_center_* options. These make UAE adaptively adjust the origin of drawing, 
so that what it draws best fits the available buffer. 

Cheers,
Rich

Other related posts: