mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-26 05:50:05 +00:00
Accept both primary and overlay planes on Rockchip platforms
Fixes #861
This commit is contained in:
1 parent
a9f8a77b66
commit
6ab37d0036
1 file changed
+2
-1
+2
-1
@@ -345,7 +345,8 @@ int rk_setup(int videoFormat, int width, int height, int redrawRate, void* conte
|
|||||||
if (!prop) {
|
if (!prop) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!strcmp(prop->name, "type") && props->prop_values[j] == DRM_PLANE_TYPE_OVERLAY) {
|
if (!strcmp(prop->name, "type") && (props->prop_values[j] == DRM_PLANE_TYPE_OVERLAY ||
|
||||||
|
props->prop_values[j] == DRM_PLANE_TYPE_PRIMARY)) {
|
||||||
plane_id = ovr->plane_id;
|
plane_id = ovr->plane_id;
|
||||||
}
|
}
|
||||||
drmModeFreeProperty(prop);
|
drmModeFreeProperty(prop);
|
||||||
|
|||||||
Reference in new issue
Block a user