Skip to content

scene: Compute projection matrix based on the render target rect

Neither SceneQPainter nor SceneOpenGL have to compute the projection matrix by themselves. It can be done by the Scene when setting the projection matrix. The main benefit behind this change is that it reduces the amount of custom setup code around paintScreen(), which makes us one step closer to getting rid of graphics-specific paint() function and just calling paintScreen().

Merge request reports