(Hoffentlich) Windows-Fix
This commit is contained in:
@@ -89,15 +89,18 @@ namespace WorldOfPeacecraft
|
|||||||
|
|
||||||
public void PerformRefresh ()
|
public void PerformRefresh ()
|
||||||
{
|
{
|
||||||
ITile[,] map = Backend.GetMap();
|
this.BeginInvoke(new MethodInvoker(delegate
|
||||||
int mapWidth = (map.GetLength(0)) * tileSize;
|
{
|
||||||
int mapHeight = (map.GetLength(1)) * tileSize;
|
ITile[,] map = Backend.GetMap();
|
||||||
this.SuspendLayout();
|
int mapWidth = (map.GetLength(0)) * tileSize;
|
||||||
this.SetClientSizeCore(mapWidth, mapHeight);
|
int mapHeight = (map.GetLength(1)) * tileSize;
|
||||||
Board.Size = new Size(mapWidth, mapHeight);
|
this.SuspendLayout();
|
||||||
this.ResumeLayout();
|
this.SetClientSizeCore(mapWidth, mapHeight);
|
||||||
this.PerformLayout();
|
Board.Size = new Size(mapWidth, mapHeight);
|
||||||
this.Refresh();
|
this.ResumeLayout();
|
||||||
|
this.PerformLayout();
|
||||||
|
this.Refresh();
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
[DllImport("kernel32.dll", SetLastError = true)]
|
[DllImport("kernel32.dll", SetLastError = true)]
|
||||||
|
|||||||
Reference in New Issue
Block a user