displayWidth = par1;
displayHeight = par2;
if (currentScreen != null)
{
ScaledResolution scaledresolution = new ScaledResolution(gameSettings, par1, par2);
int i = scaledresolution.getScaledWidth();
int j = scaledresolution.getScaledHeight();
currentScreen.setWorldAndResolution(this, i, j);
}
}