0

Try this instead:
Matrix4f matrix = Maths.createTransformationMatrix(
new Vector2f(
-1,
1)
, 0.0f
, new Vector2f(
2 / Display.getWidth(),
-2 / Display.getHeight()
)
);
I have no idea what gui.getSize().getX() / Display.getWidth(...