st/nine: Handle Window Occlusion
authorPatrick Rudolph <siro@das-labor.org>
Sat, 20 Jun 2015 18:06:11 +0000 (20:06 +0200)
committerAxel Davy <axel.davy@ens.fr>
Thu, 4 Feb 2016 21:12:17 +0000 (22:12 +0100)
commita961ec335d5f38c07181e4956341c9b4cca59fa4
tree38b1b8729d3516591737a5b30bf4819bfc7fff38
parente59908e57f4f6d63bbe079fde4e0180167e709c1
st/nine: Handle Window Occlusion

Apps can know if the window is occluded by checking for
specific error messages. The behaviour is different
for Device9 and Device9Ex.

This allow games to release the mouse and stop rendering
until the focus is restored.

In case of multiple swapchain we do care only of the device one.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
include/D3D9/d3d9types.h
include/d3dadapter/present.h
src/gallium/state_trackers/nine/device9.c
src/gallium/state_trackers/nine/device9.h
src/gallium/state_trackers/nine/device9ex.c
src/gallium/state_trackers/nine/device9ex.h
src/gallium/state_trackers/nine/swapchain9.c
src/gallium/state_trackers/nine/swapchain9.h