aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-06-10 17:51:09 +0200
committerdec05eba <dec05eba@protonmail.com>2024-06-10 17:51:09 +0200
commitadbd5d976615d6f4edb162899dc28c0cec9e292b (patch)
treec12c38b61e7cf1a2e31117cbb06ab13c633ded60 /src/utils.c
parent55266f2a689a17fc34e7f441a4b8f1f8f917a366 (diff)
Take amd hevc video alignment padding into consideration to move video content to center of video with black bars on all sides instead of only right/bottom
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/utils.c b/src/utils.c
index 92abbb0..e00f3c5 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -329,10 +329,8 @@ gsr_monitor_rotation drm_monitor_get_display_server_rotation(const gsr_egl *egl,
userdata.rotation = GSR_MONITOR_ROT_0;
userdata.match_found = false;
for_each_active_monitor_output_wayland(egl, get_monitor_by_name_and_size_callback, &userdata);
- if(userdata.match_found) {
- fprintf(stderr, "found!\n");
+ if(userdata.match_found)
return userdata.rotation;
- }
}
{
get_monitor_by_connector_id_userdata userdata;