| 56 | |
| 57 | |
| 58 | void ZoomWidget::drawLayer(const DrawArgs& args, int layer) { |
| 59 | DrawArgs zoomCtx = args; |
| 60 | zoomCtx.clipBox.pos = zoomCtx.clipBox.pos.div(zoom); |
| 61 | zoomCtx.clipBox.size = zoomCtx.clipBox.size.div(zoom); |
| 62 | // No need to save the state because that is done in the parent |
| 63 | nvgScale(args.vg, zoom, zoom); |
| 64 | Widget::drawLayer(zoomCtx, layer); |
| 65 | } |
| 66 | |
| 67 | |
| 68 | } // namespace widget |