prevent invalid size instructions since apparently that can happen
This commit is contained in:
parent
acdbdc7e73
commit
7f0dc17590
1 changed files with 1 additions and 0 deletions
|
@ -292,6 +292,7 @@ public class CollabVMClient {
|
|||
if (msgArr[1] != "0") return;
|
||||
var width = int.Parse(msgArr[2]);
|
||||
var height = int.Parse(msgArr[3]);
|
||||
if (width == 0 || height == 0) return;
|
||||
this.framebuffer = new Image<Rgba32>(width, height);
|
||||
this.ScreenSize.Invoke(this, new ScreenSizeEventArgs { Width = width, Height = height });
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue