MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / MetaSelect

Function MetaSelect

xdevice.cpp:1634–1661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1632// e.g. two select colors in a row.
1633
1634void 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

Callers 14

DrawPointFunction · 0.85
DrawSpotFunction · 0.85
DrawBlockFunction · 0.85
DrawBoxFunction · 0.85
DrawDashFunction · 0.85
DrawArcFunction · 0.85
DrawEllipse2Function · 0.85
DrawFillFunction · 0.85
DrawSzFunction · 0.85
DrawSignFunction · 0.85
DrawHouseFunction · 0.85
DrawObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected