| 32 | namespace fl { |
| 33 | |
| 34 | ScaleUp::ScaleUp(const XYMap& xymap, Fx2dPtr fx) : Fx2d(xymap), mDelegate(fx) { |
| 35 | // Turn off re-mapping of the delegate's XYMap, since bilinearExpand needs |
| 36 | // to work in screen coordinates. The final mapping will for this class will |
| 37 | // still be performed. |
| 38 | mDelegate->getXYMap().setRectangularGrid(); |
| 39 | } |
| 40 | |
| 41 | void ScaleUp::draw(DrawContext context) { |
| 42 | if (mSurface.empty()) { |
nothing calls this directly
no test coverage detected