mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -07:00
Possible fix for some using Greenshot to "copy from clipboard" issues, needs to be tested though...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2561 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
5ad1247a26
commit
aefa2eace3
1 changed files with 19 additions and 24 deletions
|
@ -372,8 +372,6 @@ EndSelection:<<<<<<<4
|
||||||
byte[] dibBuffer = new byte[dibStream.Length];
|
byte[] dibBuffer = new byte[dibStream.Length];
|
||||||
dibStream.Read(dibBuffer, 0, dibBuffer.Length);
|
dibStream.Read(dibBuffer, 0, dibBuffer.Length);
|
||||||
BitmapInfoHeader infoHeader = BinaryStructHelper.FromByteArray<BitmapInfoHeader>(dibBuffer);
|
BitmapInfoHeader infoHeader = BinaryStructHelper.FromByteArray<BitmapInfoHeader>(dibBuffer);
|
||||||
// Only use this code, when the biCommpression != 0 (BI_RGB)
|
|
||||||
if (infoHeader.biCompression != 0) {
|
|
||||||
LOG.InfoFormat("Using special DIB format reader for biCompression {0}", infoHeader.biCompression);
|
LOG.InfoFormat("Using special DIB format reader for biCompression {0}", infoHeader.biCompression);
|
||||||
int fileHeaderSize = Marshal.SizeOf(typeof(BitmapFileHeader));
|
int fileHeaderSize = Marshal.SizeOf(typeof(BitmapFileHeader));
|
||||||
uint infoHeaderSize = infoHeader.biSize;
|
uint infoHeaderSize = infoHeader.biSize;
|
||||||
|
@ -398,9 +396,6 @@ EndSelection:<<<<<<<4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
LOG.InfoFormat("Skipping special DIB format reader for biCompression {0}", infoHeader.biCompression);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LOG.Info("Skipping special DIB format reader as it's disabled in the configuration.");
|
LOG.Info("Skipping special DIB format reader as it's disabled in the configuration.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue