Skip to content

Commit

Permalink
fix missprint - rendering for vertical screens with rectangle (not sq…
Browse files Browse the repository at this point in the history
…uare) blocks
  • Loading branch information
spiiin committed Jul 19, 2018
1 parent f481a8a commit 65dabaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CadEditor/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 65dabaa

Please sign in to comment.