From adbd5d976615d6f4edb162899dc28c0cec9e292b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 10 Jun 2024 17:51:09 +0200 Subject: 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 --- src/utils.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/utils.c') 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; -- cgit v1.2.3