Changeset 873 for trunk/src


Ignore:
Timestamp:
Jun 30, 2011, 12:36:31 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

general: Restore the FPU Control Word completely after making Win and Gpi calls known to unexpectedly change it, as there are Qt applications relying on other bits as well. Closes #222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/global/qt_os2.h

    r659 r873  
    6969LONG APIENTRY WinQueryClipRegion(HWND hwnd, HRGN hrgnClip);
    7070
    71 inline LONG APIENTRY __FPU_CW_WinQueryClipRegion (HWND hwnd, HRGN hrgnClip)
     71extern inline LONG APIENTRY __FPU_CW_WinQueryClipRegion (HWND hwnd, HRGN hrgnClip)
    7272{
     73    unsigned int cw = __FPU_CW_Get();
    7374    LONG ret = WinQueryClipRegion (hwnd, hrgnClip);
    74     __FPU_CW_Restore();
     75    __FPU_CW_Set(cw);
    7576    return ret;
    7677}
     
    7980BOOL APIENTRY WinSetClipRegion(HWND hwnd, HRGN hrgnClip);
    8081
    81 inline LONG APIENTRY __FPU_CW_WinSetClipRegion (HWND hwnd, HRGN hrgnClip)
     82extern inline LONG APIENTRY __FPU_CW_WinSetClipRegion (HWND hwnd, HRGN hrgnClip)
    8283{
     84    unsigned int cw = __FPU_CW_Get();
    8385    LONG ret = WinSetClipRegion (hwnd, hrgnClip);
    84     __FPU_CW_Restore();
     86    __FPU_CW_Set(cw);
    8587    return ret;
    8688}
Note: See TracChangeset for help on using the changeset viewer.