[PATCH 2/7] wined3d: pass a wined3d_box to wined3d_surface_map

Henri Verbeet hverbeet at gmail.com
Tue Sep 15 12:53:13 CDT 2015


On 14 September 2015 at 21:21, Stefan Dösinger
<stefandoesinger at gmail.com> wrote:
> Am 2015-09-14 um 13:13 schrieb Riccardo Bortolato:
>> +    hr = wined3d_surface_map(surface->wined3d_surface, &map_desc, rect ? (const struct wined3d_box *)&box : NULL, flags);
> Why do you need the cast?
Also, you can implement surface_check_block_align_rect() on top of
surface_check_block_align().



More information about the wine-devel mailing list