As in the code snippet from #2460 we do not validate that the frame provided has the correct dimensions since we assume the user uses Context::new_frame() to create a new frame with the correct settings.
In order to add validation we either need to store the configuration in the Frame.
As in the code snippet from #2460 we do not validate that the frame provided has the correct dimensions since we assume the user uses
Context::new_frame()
to create a new frame with the correct settings.In order to add validation we either need to store the configuration in the
Frame
.