Andre DRASZIK wrote:
Hi,
it seems, nowadays IDirectFBSurface::GetFramebufferOffset() is not very
useful anymore.
More importantly, using it can lead to various bugs as it does not
necessarily return an offset into framebuffer memory, and if one really
were to use that offset, various bad things could happen.
The suggestion is to replace it with
IDirectFBSurface::GetPhysicalAddress() which would always return the
physical address of the surface, no matter which surface pool it comes
from. See patch.
Thanks for the patch. I was mentioning that issue when the method had been
added and was proposing the same as you did, but please use unsigned long
to be 64bit clean.
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev