Skip to content

Commit

Permalink
More fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
MainMemory committed May 15, 2015
1 parent f0ac927 commit 0c8ff1d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SonLVL/MainForm.cs
Expand Up @@ -4892,13 +4892,14 @@ private void ImportImage(Bitmap bmp, Bitmap colbmp1, Bitmap colbmp2, Bitmap prib
foreach (Chunk c in newChunks)
{
Application.DoEvents();
LevelData.Chunks.Add(c);
LevelData.ChunkBmpBits.Add(new BitmapBits[2]);
LevelData.ChunkBmps.Add(new Bitmap[2]);
LevelData.ChunkColBmpBits.Add(new BitmapBits[2]);
LevelData.ChunkColBmps.Add(new Bitmap[2]);
LevelData.CompChunkBmps.Add(null);
LevelData.CompChunkBmpBits.Add(null);
LevelData.RedrawChunk(LevelData.Blocks.Count - 1);
LevelData.RedrawChunk(LevelData.Chunks.Count - 1);
}
SelectedChunk = (byte)(LevelData.Chunks.Count - 1);
ChunkSelector.SelectedIndex = SelectedChunk;
Expand Down Expand Up @@ -8062,17 +8063,20 @@ private void pasteOverToolStripMenuItem_Click(object sender, EventArgs e)
foreach (Chunk c in newChunks)
{
Application.DoEvents();
LevelData.Chunks.Add(c);
LevelData.ChunkBmpBits.Add(new BitmapBits[2]);
LevelData.ChunkBmps.Add(new Bitmap[2]);
LevelData.ChunkColBmpBits.Add(new BitmapBits[2]);
LevelData.ChunkColBmps.Add(new Bitmap[2]);
LevelData.CompChunkBmps.Add(null);
LevelData.CompChunkBmpBits.Add(null);
LevelData.RedrawChunk(LevelData.Blocks.Count - 1);
LevelData.RedrawChunk(LevelData.Chunks.Count - 1);
}
SelectedChunk = (byte)(LevelData.Chunks.Count - 1);
ChunkSelector.SelectedIndex = SelectedChunk;
importProgressControl1.Hide();
Enabled = true;
UseWaitCursor = false;
return result;
}

Expand Down

0 comments on commit 0c8ff1d

Please sign in to comment.