From 93772b71e3b8f236720a163fcac241e8d4437bc6 Mon Sep 17 00:00:00 2001 From: amy Date: Sat, 23 Nov 2024 17:40:27 +0000 Subject: [PATCH] fix bug --- OpenDreamClient/Rendering/DreamViewOverlay.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenDreamClient/Rendering/DreamViewOverlay.cs b/OpenDreamClient/Rendering/DreamViewOverlay.cs index 11f16f38ca..435615ffdc 100644 --- a/OpenDreamClient/Rendering/DreamViewOverlay.cs +++ b/OpenDreamClient/Rendering/DreamViewOverlay.cs @@ -795,6 +795,8 @@ private Texture ProcessKeepTogether(DrawingHandleWorld handle, RendererMetaData } public Texture GetTextureFromMaptext(string maptext, int width, int height, DrawingHandleWorld handle) { + if(width == 0) width = 32; + if(height == 0) height = 32; IRenderTexture tempTexture = _renderTargetPool.Rent(new Vector2i(width, height)); handle.RenderInRenderTarget(tempTexture, () => { handle.SetTransform(CreateRenderTargetFlipMatrix(tempTexture.Size, Vector2.Zero));