diff --git a/2D/Screens/BlockSelectScreen.cs b/2D/Screens/BlockSelectScreen.cs index bbc315159..b4a29d42e 100644 --- a/2D/Screens/BlockSelectScreen.cs +++ b/2D/Screens/BlockSelectScreen.cs @@ -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; diff --git a/FastBitmap.cs b/FastBitmap.cs index 7944bc996..33a6d76c7 100644 --- a/FastBitmap.cs +++ b/FastBitmap.cs @@ -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 );