Am Montag, 5. Mai 2008 23:49:34 schrieb Alexander Dorofeyev:
- /* Freed in reverse order as native seems to dislike and crash on
freeing top level surface first. */
just fyi, native ignores refcounts on sublevels(if they are created as complex surface, not attached). As long as the top level exists, you can release the sublevels into oblivion if you want to, they'll stay around. If the top level is destroyed, the sublevels are destroyed regardless of their refcounts. There are some tests for this behavior in dsurface.c, and Wine does the same essentially.
A very extensive test, wow!