Reputation: 99
Draw.drawSquare(0, 0, Display.getWidth(), Display.getHeight(), UITextures.engineBackgroundTex);
For some reason, the texture is the same size, even after the window is resized.
Display.setResizable
is set to true
.
Am I correctly getting the size of the display?
ALSO: The draw call is running at 60 fps and Draw.drawSquare
has been tested to work, but for some reason Display.getWidth
does not work to resize the texture...
Upvotes: 0
Views: 115
Reputation: 2877
The documentation of Display.getWidth()
states:
This value will be updated after a call to Display.update().
Upvotes: 1