<div dir="ltr"><br><div class="gmail_quote">On Thu, Jul 22, 2010 at 11:09 PM, Laurent Aimar <span dir="ltr"><<a href="mailto:fenrir@elivagar.org">fenrir@elivagar.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
 picture_pool_NewFromFormat creates pictures using picture_New().<br>
picture_New() will allocates pictures with suitable width/height/pitch so that<br>
they works nicely with MMX/SSEx.<br>
 If you have specific constraints about the pitch, you will have to use<br>
picture_pool_New() and picture_NewFromResource() where you can provides the<br>
memory/pitches to use.<br></blockquote><div><br>Oh I see. So as long as the fmt is correct, _NewFromFormat() should provide pictures with the correct pitch?<br>I definately had some sort of issue with this when i was developing the patch (hence the *4 thingy) but le tme try again.<br>
 <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
 Do the D2D API allows to only copy/display part of a picture?<br></blockquote><div><br>I believe we can do anything we want here (part/full/etc.). Why? <br></div></div></div>