st/nine: Implement IPresent version 1.2
authorPatrick Rudolph <siro@das-labor.org>
Sat, 27 Feb 2016 08:58:19 +0000 (09:58 +0100)
committerAxel Davy <axel.davy@ens.fr>
Wed, 18 May 2016 21:37:14 +0000 (23:37 +0200)
commitdae9a9172703afc979a2fb7d243dd574227e826e
treec8ed8dd31f3e6117c3c6d37572dec410c3ee15fd
parent2e149a2bf0a525edfc3f705eace3ecb7c132dcce
st/nine: Implement IPresent version 1.2

Implement presentation interface version 1.2:
* ID3DPresent_ResolutionMismatch
    Poll for resolution mismatch.
    A third party app might have changed resolution,
    which requires a device reset.
* ID3DPresent_CreateThread
    Create a thread in WINE to allow nine to use Windows API
    functions. Required for multi-threaded presentation.
    In single-threaded presentation mode the calling thread is
    already known to WINE.
* ID3DPresent_WaitForThread
    Wait for a wine thread to terminate.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
include/d3dadapter/present.h