Re: [AD] windowed DGA driver (again)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Eric Botcazou <ebotcazou@xxxxxxxxxx> writes:

> The problem I had some time ago with the windowed DGA driver is
> still existing.
> Here is the situation:
> - run allegro/tests/test: the screen gets black, the small 320x200
>   white window pops up *but* the screen area below the window gets
>   white too:
> 
>    --------------------------------------
>    |       DGA window (white)           |
>    |             -----\---              |
>    |             |       |              |
>    |             |       |              |
>    |             ---------              |
>    | screen area |       |              |
>    | (white too) -->     |              |
>    --------------------------------------

Allegro program usually ask for virtual size 0x0, if it wants to get
all available virtual screen.  I think DGA driver should emulate this
behaviour.  I'd be happy with something like the following:

  if requested virtual size by x(or y) is 0, then calculate maximum
  available virtual size for x(y), otherwise make virtual size by
  x(y) to be maximum of requested screen size by x(y) and requested
  virtual size by x(y).

What do you think about this method of virtual size calculation.  It
will help if you call set_gfx_mode as following:

set_gfx_mode (GFX_..., w, h, w, h);

-- 
Michael Bukin



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/