On 18 December 2016 at 00:22, Józef Kucia jkucia@codeweavers.com wrote:
- INT64 total_vidmem, free_vidmem;
...
free_vidmem = wined3d_device_get_available_texture_mem(ddraw->wined3d_device);
*free = max(0, free_vidmem - framebuffer_size);
This works, but it seems a little silly to use INT64 to avoid writing something along the lines of "*free = framebuffer_size > free_vidmem ? 0 : free_vidmem - framebuffer_size;".