This code is ready for execution in the main loop, but when I resize the frame the mouse pointer turns into a scroll pointer (2 ended arrow) and it seems like in-game / terrain clicking is completely whack. Am I doing something wrong?
if (Display.wasResized()) {
frameBuffer.resize(Display.getWidth(), Display.getHeight());
frameBuffer.refresh();
mouseYOffset = frameBuffer.getOutputHeight();
}
frameBuffer.clear(Color.BLACK);
// all other rendering stuff is under here
Oh.. and here's a screen shot of what happens on the login menu when the frame is resized (everything becomes distorted and placed / scaled awkwardly)