Fix screenshots.

This commit is contained in:
UnknownShadow200 2015-02-06 07:21:11 +11:00
parent 617e8725e8
commit 77490cf84d
2 changed files with 2 additions and 4 deletions

View file

@ -57,8 +57,6 @@ namespace ClassicalSharp {
public override void OnResize( int oldWidth, int oldHeight, int width, int height ) {
int yDiff = ( height - oldHeight ) / 2;
int xDiff = ( width - oldWidth ) / 2;
selectedBlock.Y1 += yDiff;
selectedBlock.X1 += xDiff;
startX += xDiff;
startY += yDiff;
blockInfoTexture.X1 += xDiff;

View file

@ -59,8 +59,8 @@ namespace ClassicalSharp {
}
PixelFormat format = Bitmap.PixelFormat;
if( format != PixelFormat.Format32bppArgb ) {
throw new NotSupportedException( "Unsupported bitmap pixel format:" + format );
if( !( format == PixelFormat.Format32bppArgb || format == PixelFormat.Format32bppRgb ) ) {
throw new NotSupportedException( "Unsupported bitmap pixel format: " + format );
}
Rectangle rec = new Rectangle( 0, 0, Bitmap.Width, Bitmap.Height );