Fix Rect2i.encompasses()

The method is used mainly in `LwjglCanvasRenderer.drawTexture` to update the texture`s crop region. This fix does not seem to harm that operation (maybe even improve it?).