Fix entity rendering with larger/smaller than actual resolution
This commit is contained in:
@@ -71,6 +71,9 @@ public class ScreenshotRenderer implements RenderInfo {
|
|||||||
, false
|
, false
|
||||||
//#endif
|
//#endif
|
||||||
);
|
);
|
||||||
|
//#if MC>=11500
|
||||||
|
//$$ mc.gameRenderer.onResized(displayWidthBefore, displayHeightBefore);
|
||||||
|
//#endif
|
||||||
//#else
|
//#else
|
||||||
//$$ mc.resize(displayWidthBefore, displayHeightBefore);
|
//$$ mc.resize(displayWidthBefore, displayHeightBefore);
|
||||||
//#endif
|
//#endif
|
||||||
|
|||||||
@@ -129,6 +129,9 @@ public abstract class OpenGlFrameCapturer<F extends Frame, D extends CaptureData
|
|||||||
MainWindowAccessor mainWindow = (MainWindowAccessor) (Object) getWindow(mc);
|
MainWindowAccessor mainWindow = (MainWindowAccessor) (Object) getWindow(mc);
|
||||||
mainWindow.setFramebufferWidth(width);
|
mainWindow.setFramebufferWidth(width);
|
||||||
mainWindow.setFramebufferHeight(height);
|
mainWindow.setFramebufferHeight(height);
|
||||||
|
//#if MC>=11500
|
||||||
|
//$$ mc.gameRenderer.onResized(width, height);
|
||||||
|
//#endif
|
||||||
//#else
|
//#else
|
||||||
//$$ if (width != mc.displayWidth || height != mc.displayHeight) {
|
//$$ if (width != mc.displayWidth || height != mc.displayHeight) {
|
||||||
//$$ mc.resize(width, height);
|
//$$ mc.resize(width, height);
|
||||||
|
|||||||
@@ -378,6 +378,9 @@ public class VideoRenderer implements RenderInfo {
|
|||||||
MainWindowAccessor acc = (MainWindowAccessor) (Object) getWindow(mc);
|
MainWindowAccessor acc = (MainWindowAccessor) (Object) getWindow(mc);
|
||||||
acc.setFramebufferWidth(displayWidth);
|
acc.setFramebufferWidth(displayWidth);
|
||||||
acc.setFramebufferHeight(displayHeight);
|
acc.setFramebufferHeight(displayHeight);
|
||||||
|
//#if MC>=11500
|
||||||
|
//$$ mc.gameRenderer.onResized(displayWidth, displayHeight);
|
||||||
|
//#endif
|
||||||
//#else
|
//#else
|
||||||
//$$ mc.resize(displayWidth, displayHeight);
|
//$$ mc.resize(displayWidth, displayHeight);
|
||||||
//#endif
|
//#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user