| 225 | } |
| 226 | |
| 227 | void CanvasWidget::renderLine(Vec2F const& renderingOffset, Vec2F const& begin, Vec2F const end, Vec4B const& color, float lineWidth) { |
| 228 | auto& context = GuiContext::singleton(); |
| 229 | if (m_ignoreInterfaceScale) |
| 230 | context.drawLine(renderingOffset + begin, renderingOffset + end, color, lineWidth); |
| 231 | else { |
| 232 | context.drawLine( |
| 233 | renderingOffset * context.interfaceScale() + begin * context.interfaceScale(), |
| 234 | renderingOffset * context.interfaceScale() + end * context.interfaceScale(), |
| 235 | color, lineWidth); |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | void CanvasWidget::renderRect(Vec2F const& renderingOffset, RectF const& coords, Vec4B const& color) { |
| 240 | auto& context = GuiContext::singleton(); |
nothing calls this directly
no test coverage detected