- Clean up all the D3D COM handling (but the underlaying code is still as ugly as before). - Handle properly (ie as on real Windows) negative values in rectangles during blitting.