Changeset View
Changeset View
Standalone View
Standalone View
libs/vectorimage/libwmf/qwmf.cc
Show First 20 Lines • Show All 658 Lines • ▼ Show 20 Line(s) | 658 | { | |||
---|---|---|---|---|---|
659 | /* TODO: better implementation : need QT 3.0.2 | 659 | /* TODO: better implementation : need QT 3.0.2 | ||
660 | QRegion region = mPainter.clipRegion(); | 660 | QRegion region = mPainter.clipRegion(); | ||
661 | if ( region.isEmpty() ) | 661 | if ( region.isEmpty() ) | ||
662 | region = bbox(); | 662 | region = bbox(); | ||
663 | */ | 663 | */ | ||
664 | QRegion region(bbox()); | 664 | QRegion region(bbox()); | ||
665 | 665 | | |||
666 | QRegion newRegion(parm[ 3 ], parm[ 2 ], parm[ 1 ] - parm[ 3 ], parm[ 0 ] - parm[ 2 ]); | 666 | QRegion newRegion(parm[ 3 ], parm[ 2 ], parm[ 1 ] - parm[ 3 ], parm[ 0 ] - parm[ 2 ]); | ||
667 | region = region.intersect(newRegion); | 667 | region = region.intersected(newRegion); | ||
668 | 668 | | |||
669 | mPainter.setClipRegion(region); | 669 | mPainter.setClipRegion(region); | ||
670 | } | 670 | } | ||
671 | 671 | | |||
672 | 672 | | |||
673 | //----------------------------------------------------------------------------- | 673 | //----------------------------------------------------------------------------- | ||
674 | void QWinMetaFile::excludeClipRect(long, short* parm) | 674 | void QWinMetaFile::excludeClipRect(long, short* parm) | ||
675 | { | 675 | { | ||
▲ Show 20 Lines • Show All 575 Lines • Show Last 20 Lines |