| 183 | } |
| 184 | |
| 185 | void CanvasWidget::renderDrawable(Vec2F const& renderingOffset, Drawable drawable, Vec2F const& screenPos) { |
| 186 | auto& context = GuiContext::singleton(); |
| 187 | if (m_ignoreInterfaceScale) |
| 188 | context.drawDrawable(std::move(drawable), renderingOffset + screenPos, 1); |
| 189 | else { |
| 190 | drawable.scale(context.interfaceScale()); |
| 191 | context.drawDrawable(std::move(drawable), renderingOffset * context.interfaceScale() + screenPos * context.interfaceScale(), 1); |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | void CanvasWidget::renderTiledImage(Vec2F const& renderingOffset, String const& texName, float textureScale, Vec2D const& offset, RectF const& screenCoords, Vec4B const& color) { |
| 196 | auto& context = GuiContext::singleton(); |
nothing calls this directly
no test coverage detected