mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 17:12:25 -05:00
Fix screenshots.
This commit is contained in:
parent
617e8725e8
commit
77490cf84d
2 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue