On 1 April 2010 23:58, Roderick Colenbrander thunderbird2k@gmail.com wrote:
- /* In general we don't support any destination fixups except for P8. P8 fixup
- * can occur in three cases:
- * 1) Blit from p8 source to p8 destination, this is a source fixup and the
- * destination fixup can be ignored.
- * 2) LockRect on surface, LoadLocation takes care of the 'destination fixup'.
- * 3) RealizePalette refreshes the palette of a surface. The surface is then
- * both the source (the sysmem / texture copy) and the destination (drawable).
- *
But you don't know all that. All you know is that you've got two surfaces with certain properties. You could argue that since the source and destination fixups are the same they cancel out, so that you can do that blit as long as you either don't stretch or the fixup is linear. However, in that case you also need to make sure the blitter actually behaves like that.