Alexander Dorofeyev : ddraw: Implement FPU mode fixup in d3d7 device.

Alexandre Julliard julliard at winehq.org
Mon Jun 23 16:04:06 CDT 2008


Module: wine
Branch: master
Commit: cb5e06c944251a5de16e12ecd2253c158764ee4c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cb5e06c944251a5de16e12ecd2253c158764ee4c

Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date:   Fri Jun 20 02:49:46 2008 +0300

ddraw: Implement FPU mode fixup in d3d7 device.

As documented in DirectX7 SDK, d3d7 devices set FPU mode (control word) on every 
call and restore it back to original state before returning, if created in 
DDSCL_FPUPRESERVE cooperative mode. This allows games to work with FPU in a 
possibly incompatible mode and avoid resetting it all the time.

---

 dlls/ddraw/ddraw.c         |    2 -
 dlls/ddraw/ddraw_private.h |    3 +-
 dlls/ddraw/device.c        | 1209 +++++++++++++++++++++++++++++++++++++++++---
 dlls/ddraw/direct3d.c      |    6 +-
 4 files changed, 1135 insertions(+), 85 deletions(-)

Diff:   http://source.winehq.org/git/wine.git/?a=commitdiff;h=cb5e06c944251a5de16e12ecd2253c158764ee4c



More information about the wine-cvs mailing list