https://bugs.winehq.org/show_bug.cgi?id=45590
--- Comment #1 from Henri Verbeet hverbeet@gmail.com --- (In reply to Petru-Florin Mihancea from comment #0)
Shouldn't dst_surface be accessed in that line instead of surface?
No, that's working as intended. The equivalent code in the development branch [1] is perhaps slightly less confusing, but ultimately it's simply a weird DirectDraw feature, and there's only so much we can do there.
[1] https://source.winehq.org/git/wine.git/blob/HEAD:/dlls/wined3d/texture.c#l31...