DirectFB - Home of the pragmatist Roadmap


[directfb-dev] Re: [directfb-users] Re: Brightening surfaces
Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[directfb-dev] Re: [directfb-users] Re: Brightening surfaces


  • To: directfb-dev@directfb.org
  • Subject: [directfb-dev] Re: [directfb-users] Re: Brightening surfaces
  • From: Hallvar Helleseth <hallvar@ii.uib.no>
  • Date: Wed, 19 Jun 2002 22:43:25 +0200
  • Content-disposition: inline
  • Content-type: text/plain; charset=us-ascii
  • In-reply-to: <20020619020847.GA29450@skunk.convergence.de>
  • References: <20020422115819.A306@gnure> <20020422100813.GA12765@skunk.convergence.de> <20020422182730.A3106@gnure> <20020425213358.GA4695@skunk.convergence.de> <20020426020906.A4104@gnure> <20020619020847.GA29450@skunk.convergence.de>
  • Sender: Hallvar Helleseth <hallvar@ii.uib.no>
  • Sender: directfb-dev-bounce@directfb.org

* Denis Oliver Kropp (dok@directfb.org) wrote:
> Quoting Hallvar Helleseth (hallvar@ii.uib.no):
> > * Denis Oliver Kropp (dok@directfb.org) wrote:
> > > Quoting Hallvar Helleseth (hallvar@ii.uib.no):
> > > > Aah, I found a bug!
> > > > 
> > > > The rectangle gets blended into the surface when I'm not using hardware
> > > > acceleration. otherwise that part of the surface gets 100% transparent.
> > > > 
> > > > I'm using Matrox G550
> > > > and this is my code:
> > > > 
> > > > surface->Blit(surface, surface2, NULL, &rect);
> > > > surface->SetDrawingFlags(surface, DSDRAW_BLEND);
> > > > surface->SetColor(surface, 100, 100, 100, 100);
> > > > surface->FillRectangle(surface, rect.x, rect.y, rect.w, rect.h);
> > > 
> > > I did the last three lines on an ARGB surface of a window and it was ok.
> > > Is the blitted image visible if you don't do the last three lines
> > > afterwards?
> > 
> > That's very odd, maybe it could be only G550. It's visible without doing
> > the last three lines. BTW it works with ATI Rage 128 hardware.
> 
> I recently fixed the setup of blended drawing and verified that it fixed
> this bug ;)  Can you confirm this?

Confirmed :) However. Either the generic driver or matrox driver has a
bug here somewhere.
When Filling rectangle with an alphachannel onto a surface.
With generic driver: the whole surface gets that alpha transparency.
With matrox  driver: the rectangle gets blended onto the surface with
                     the surface keeping the alphachannel it had before.

IMHO the matrox driver does the expected and wanted behavior.

Thanks for fixing the bug :)

Hallvar


-- 
Info:  To unsubscribe send a mail to listar@directfb.org with 
"unsubscribe directfb-dev" as subject.



Home | Main Index | Thread Index


directfb.org / Development / Old Archives