Fix resizing in render progress gui being at totally the wrong position causing the rendered video to be swapped to screen
This commit is contained in:
@@ -365,12 +365,6 @@ public class VideoRenderer implements RenderInfo {
|
|||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
//if not in high performance mode, update the gui size if screen size changed
|
|
||||||
//this takes virtually no time
|
|
||||||
if(!options.isHighPerformance()) {
|
|
||||||
mc.updateDisplay();
|
|
||||||
}
|
|
||||||
|
|
||||||
ScaledResolution scaled = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight);
|
ScaledResolution scaled = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight);
|
||||||
int mouseX = Mouse.getX() * scaled.getScaledWidth() / mc.displayWidth;
|
int mouseX = Mouse.getX() * scaled.getScaledWidth() / mc.displayWidth;
|
||||||
int mouseY = scaled.getScaledHeight() - Mouse.getY() * scaled.getScaledHeight() / mc.displayHeight - 1;
|
int mouseY = scaled.getScaledHeight() - Mouse.getY() * scaled.getScaledHeight() / mc.displayHeight - 1;
|
||||||
@@ -382,7 +376,14 @@ public class VideoRenderer implements RenderInfo {
|
|||||||
mc.getFramebuffer().framebufferRender(mc.displayWidth, mc.displayHeight);
|
mc.getFramebuffer().framebufferRender(mc.displayWidth, mc.displayHeight);
|
||||||
popMatrix();
|
popMatrix();
|
||||||
|
|
||||||
|
|
||||||
|
// if not in high performance mode, update the gui size if screen size changed
|
||||||
|
// otherwise just swap the progress gui to screen
|
||||||
|
if (options.isHighPerformance()) {
|
||||||
Display.update();
|
Display.update();
|
||||||
|
} else {
|
||||||
|
mc.updateDisplay();
|
||||||
|
}
|
||||||
if (Mouse.isGrabbed()) {
|
if (Mouse.isGrabbed()) {
|
||||||
Mouse.setGrabbed(false);
|
Mouse.setGrabbed(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user