From 65dabaa1df2d29ef4a3f050168b1d03232cb89e6 Mon Sep 17 00:00:00 2001 From: spiiin Date: Thu, 19 Jul 2018 10:56:54 +0300 Subject: [PATCH] fix missprint - rendering for vertical screens with rectangle (not square) blocks --- CadEditor/FormMain.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CadEditor/FormMain.cs b/CadEditor/FormMain.cs index 27283303..48200a70 100644 --- a/CadEditor/FormMain.cs +++ b/CadEditor/FormMain.cs @@ -267,7 +267,7 @@ private void pictureBox1_Paint(object sender, PaintEventArgs e) int tileSizeY = (int)(bigBlocks[0].Height * curScale); var visibleRect = UtilsGui.getVisibleRectangle(pnView, mapScreen); //ConfigScript.getScreenVertical() ? TILE_SIZE_Y : TILE_SIZE_X - MapEditor.Render(e.Graphics, bigBlocks, visibleRect, screens, screenNo, curScale, true, showAxis, ConfigScript.getScreenVertical() ? 0 : tileSizeX, ConfigScript.getScreenVertical() ? tileSizeX : 0, width, height); + MapEditor.Render(e.Graphics, bigBlocks, visibleRect, screens, screenNo, curScale, true, showAxis, ConfigScript.getScreenVertical() ? 0 : tileSizeX, ConfigScript.getScreenVertical() ? tileSizeY : 0, width, height); if (!ConfigScript.getScreenVertical() && showNeiScreens && (screenNo > 0) && screen.layers[0].showLayer) {