...oops. Another fail.

For some reason, I thought this was the internal mailing list. But now 
you know how friendly and helpful we Trolls are to each other ;)

Alessandro

Alessandro Portale wrote:
> I had a similar 'vertical skewing' effect, some days ago. In a slightly 
> different context but maybe for the same reasons.
> 
>    QImage img = getImageFromSomewhere();
>    const int srcBpl = img.bytesPerLine();
>    const uchar *imageData = alphaMask.bits();
> 
> The (non-const) bits() call may detach the image, which causes a 
> realignment of the image data. So if the image was unpadded, before, the 
> srcBpl is now invalid! Result is those skews.
> 
> The easiest solution in my case was to change the first line to:
>    const QImage img = getImageFromSomewhere();
> which makes sure that the non-detaching version of bits() is called.
> (Credits again to dteske for coming up with that solution)
> 
> ..just an idea of where to look :)
> 
> Alessandro
> 
> Jason H wrote:
>> Qt 4.5 RC1.Windows Open Source Binary install.
>>
>> ATI Radeon Moble chipset.
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to