On 11 September 2015 at 18:34, Riccardo Bortolato rikyz619@gmail.com wrote:
Just pass a wined3d_box structure insead of a void pointer. (And passing a wined3d_box structure to wined3d_surface_map() should probably be a preparation patch for that.)
I kept the RECT * because I get 24 hits in wined3d_private.h, it felt like the change was too big and needed better thinking but I can reverse the decision and pass around a wined3d_box * instead.
We'll probably want to consistently use wined3d_box at some point, but just changing wined3d_surface_map() shouldn't be too hard. We'd probably like a debug function along the lines of wine_dbgstr_rect() for boxes, but we don't currently have that for wined3d_volume_map() either.