Ignore:
Timestamp:
Jun 11, 2010, 4:45:27 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: OS/2: In Dive mode, the screen would get corrupted if the application created a child window with a real HWND (as e.g. smplayer does). Fixes #163.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/painting/qwindowsurface_raster.cpp

    r719 r745  
    232232
    233233    QPoint wOffset = qt_qwidget_data(widget)->wrect.topLeft();
     234    // note that we remove offset from wbr because the widget's HPS has a proper
     235    // origin already that includes this offset (which is in fact a position of
     236    // the widget relative to its top-level parent)
    234237    QRect wbr = br.translated(-offset - wOffset);
    235238
     
    272275
    273276    QPoint wOffset = qt_qwidget_data(widget)->wrect.topLeft();
     277    // note that we remove offset from wbr because the widget's HPS has a proper
     278    // origin already that includes this offset (which is in fact a position of
     279    // the widget relative to its top-level parent)
    274280    QRect wbr = br.translated(-offset - wOffset);
    275281
     
    334340
    335341    QPoint wOffset = qt_qwidget_data(widget)->wrect.topLeft();
     342    // note that we remove offset from wbr because the widget's HPS has a proper
     343    // origin already that includes this offset (which is in fact a position of
     344    // the widget relative to its top-level parent)
    336345    QRect wbr = br.translated(-offset - wOffset);
    337346
Note: See TracChangeset for help on using the changeset viewer.