| 237 | } |
| 238 | |
| 239 | void CanvasWidget::renderRect(Vec2F const& renderingOffset, RectF const& coords, Vec4B const& color) { |
| 240 | auto& context = GuiContext::singleton(); |
| 241 | |
| 242 | if (m_ignoreInterfaceScale) |
| 243 | context.drawQuad(coords.translated(renderingOffset), color); |
| 244 | else |
| 245 | context.drawQuad(coords.scaled(context.interfaceScale()).translated(renderingOffset * context.interfaceScale()), color); |
| 246 | } |
| 247 | |
| 248 | void CanvasWidget::renderPoly(Vec2F const& renderingOffset, PolyF poly, Vec4B const& color, float lineWidth) { |
| 249 | auto& context = GuiContext::singleton(); |
nothing calls this directly
no test coverage detected