Recent

Author Topic: Transparent PNG showed inverted in Wine ( TImage problem )  (Read 21874 times)

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
Re: Transparent PNG showed inverted in Wine ( TImage problem )
« Reply #15 on: September 02, 2010, 11:30:45 pm »

I vote for 3 also, but there is also a possibility of only incorrect scanline report in presence of transparent layer :-?


The same code is used at different places too, but you probably wont hit it. There might also be an error in our own alphablend code. Need to check that with win95.

//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2584
Re: Transparent PNG showed inverted in Wine ( TImage problem )
« Reply #16 on: September 03, 2010, 12:43:33 am »
I did some debugging on a testapp under wine.

It looks like alphablending a top-to-bottom dibsection results in a upsidedown image.

the alpha image is created at TWin32WidgetSet.StretchMaskBlt - CreatePremultipliedBitmap (win32api.inc:3420)
and is blended at line 3513.

the AlphaBlend routine is native wine.

I'll investigate more with some direct api calls, not using the lcl.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

alejol0

  • Jr. Member
  • **
  • Posts: 60
  • Electronic technician
    • My Facebook page
Re: Transparent PNG showed inverted in Wine ( TImage problem )
« Reply #17 on: September 03, 2010, 06:01:27 am »
Marc, I appreciate your effort. Thanks!!
I have reported this bug to Wine developers too.
Good luck!!
Contact me: lavarello1966 (at) gmail . com
or
alejandro.lavarello (at) gmail (dot) com

 

TinyPortal © 2005-2018