| 111 | } |
| 112 | |
| 113 | void drawLine(int x1, int y1, int x2, int y2, gfx::Color screenColor) override { |
| 114 | gfx::Point a(x1, y1); |
| 115 | gfx::Point b(x2, y2); |
| 116 | a = m_editor->editorToScreen(a); |
| 117 | b = m_editor->editorToScreen(b); |
| 118 | gfx::Rect bounds = m_editor->bounds(); |
| 119 | a.x -= bounds.x; |
| 120 | a.y -= bounds.y; |
| 121 | b.x -= bounds.x; |
| 122 | b.y -= bounds.y; |
| 123 | m_g->drawLine(screenColor, a, b); |
| 124 | } |
| 125 | |
| 126 | void drawRectXor(const gfx::Rect& rc) override { |
| 127 | gfx::Rect rc2 = m_editor->editorToScreen(rc); |
no test coverage detected