Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/issue 1824 Add missing DisplayCapabilities info and window ID #1825

Merged
merged 9 commits into from
Sep 12, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ private DisplayCapabilities createDisplayCapabilities(String displayName, Window
convertedCapabilities.setNumCustomPresetsAvailable(defaultMainWindow.getNumCustomPresetsAvailable());
convertedCapabilities.setMediaClockFormats(new ArrayList<MediaClockFormat>()); // mandatory field but can be empty
convertedCapabilities.setGraphicSupported(defaultMainWindow.getImageTypeSupported().contains(ImageType.DYNAMIC));
convertedCapabilities.setScreenParams(TestValues.GENERAL_SCREENPARAMS);

return convertedCapabilities;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ private DisplayCapabilities createDeprecatedDisplayCapabilities(String displayNa
// if there are imageTypes in the response, we must assume graphics are supported
convertedCapabilities.setGraphicSupported(defaultMainWindow.getImageTypeSupported() != null && defaultMainWindow.getImageTypeSupported().size() > 0);

if (cachedSystemCapabilities.containsKey(SystemCapabilityType.DISPLAY)) {
DisplayCapabilities displayCapabilitiesOld = (DisplayCapabilities) cachedSystemCapabilities.get(SystemCapabilityType.DISPLAY);
jacobkeeler marked this conversation as resolved.
Show resolved Hide resolved
convertedCapabilities.setScreenParams(displayCapabilitiesOld.getScreenParams());

noah-livio marked this conversation as resolved.
Show resolved Hide resolved
}
return convertedCapabilities;
}

Expand Down