Fixed video mode not being set when loading from json

This commit is contained in:
Banks Troutman
2019-09-22 13:35:19 -04:00
parent 33c35cda86
commit 07d0274753
4 changed files with 25 additions and 24 deletions

View File

@@ -98,7 +98,7 @@ public class ServerHandler {
case "resolution":
int newVideoMode = (int) value;
System.out.printf("Changing video mode to %d\n", newVideoMode);
CameraManager.getCurrentCamera().setCamVideoMode(newVideoMode);
CameraManager.getCurrentCamera().setCamVideoMode(newVideoMode, true);
break;
case "FOV":
double newFov = (double) value;