| 1632 | // e.g. two select colors in a row. |
| 1633 | |
| 1634 | void MetaSelect() |
| 1635 | { |
| 1636 | if (gi.pwPoly != NULL) { // Invalidate PolyLine cache |
| 1637 | gi.pwPoly = NULL; |
| 1638 | MetaPoint(gi.xPen, gi.yPen, rgbbmp[gi.kiPoly]); |
| 1639 | gi.xPen = -1; |
| 1640 | } |
| 1641 | if (gi.kiLineDes != gi.kiLineAct) { |
| 1642 | MetaSelectObject(gi.kiLineDes); |
| 1643 | gi.kiLineAct = gi.kiLineDes; |
| 1644 | } |
| 1645 | if (gi.kiFillDes != gi.kiFillAct) { |
| 1646 | MetaSelectObject(16*4 + gi.kiFillDes); |
| 1647 | gi.kiFillAct = gi.kiFillDes; |
| 1648 | } |
| 1649 | if (gi.nFontDes != gi.nFontAct) { |
| 1650 | MetaSelectObject(16*5 + gi.nFontDes); |
| 1651 | gi.nFontAct = gi.nFontDes; |
| 1652 | } |
| 1653 | if (gi.kiTextDes != gi.kiTextAct) { |
| 1654 | MetaTextColor(rgbbmp[gi.kiTextDes]); |
| 1655 | gi.kiTextAct = gi.kiTextDes; |
| 1656 | } |
| 1657 | if (gi.nAlignDes != gi.nAlignAct) { |
| 1658 | MetaTextAlign(gi.nAlignDes); |
| 1659 | gi.nAlignAct = gi.nAlignDes; |
| 1660 | } |
| 1661 | } |
| 1662 | |
| 1663 | |
| 1664 | // Output initial metafile header information into the metafile buffer. Also |
no outgoing calls
no test coverage detected