|Site sponsored by IGEL|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[directfb-dev] Re: [directfb-users] Re: Brightening surfaces
* Denis Oliver Kropp (firstname.lastname@example.org) wrote: > Quoting Hallvar Helleseth (email@example.com): > > * Denis Oliver Kropp (firstname.lastname@example.org) wrote: > > > Quoting Hallvar Helleseth (email@example.com): > > > > 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 firstname.lastname@example.org with "unsubscribe directfb-dev" as subject.