33 CFX_PointF ptCenter = GetCenterPoint();
45 nTransparency
, 80
, 220
);
48 std::vector<CFX_PointF> pts;
49 CFX_PointF origin(rectWnd.left + 1.5f, rectWnd.bottom);
51 static constexpr CFX_PointF kOffsetsMin[] = {
52 {2.5f, 4.0f}, {2.5f, 3.0f}, {4.5f, 5.0f}, {6.5f, 3.0f},
53 {6.5f, 4.0f}, {4.5f, 6.0f}, {2.5f, 4.0f}};
54 for (
const auto& offset : kOffsetsMin) {
55 pts.push_back(origin + offset);
58 static constexpr CFX_PointF kOffsets[] = {
59 {2.5f, 5.0f}, {2.5f, 6.0f}, {4.5f, 4.0f}, {6.5f, 6.0f},
60 {6.5f, 5.0f}, {4.5f, 3.0f}, {2.5f, 5.0f}};
61 for (
const auto& offset : kOffsets) {
62 pts.push_back(origin + offset);
65 pDevice->DrawFillArea(mtUser2Device, pts,
72 CFX_PointF ptTop = CFX_PointF(rectWnd.left, rectWnd.top - 1.0f);
73 CFX_PointF ptBottom = CFX_PointF(rectWnd.left, rectWnd.bottom + 1.0f);
88 for (FX_COLORREF ref : refs) {
89 pDevice->DrawStrokeLine(&mtUser2Device, ptTop, ptBottom, ref, 1.0f);
100 float nFrictionWidth = 5.0f;
101 float nFrictionHeight = 5.5f;
102 CFX_PointF ptLeft = CFX_PointF(ptCenter.x - nFrictionWidth / 2.0f,
103 ptCenter.y - nFrictionHeight / 2.0f + 0.5f);
104 CFX_PointF ptRight = CFX_PointF(ptCenter.x + nFrictionWidth / 2.0f,
105 ptCenter.y - nFrictionHeight / 2.0f + 0.5f);
107 for (size_t i = 0; i < 3; ++i) {