Skip to content

Commit

Permalink
Fixing importing bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
MainMemory committed Jun 2, 2015
1 parent a1a52e7 commit c13167c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ChaotixSpriteEdit/MainForm.cs
Expand Up @@ -226,7 +226,7 @@ private void importButton_Click(object sender, EventArgs e)
int stride = bmpd.Stride;
byte[] Bits = new byte[Math.Abs(stride) * bmpd.Height];
System.Runtime.InteropServices.Marshal.Copy(bmpd.Scan0, Bits, 0, Bits.Length);
bmp.UnlockBits(bmpd);
tmp.UnlockBits(bmpd);
for (int y = 0; y < bmpbits.Height; y++)
{
int srcaddr = y * Math.Abs(stride);
Expand Down

0 comments on commit c13167c

Please sign in to comment.