This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch devs/devilhorns/apos
in repository efl.

View the commit online.

commit ef92d4cee08a8aa52d174abc87fe0aa8d17d9852
Author: Christopher Michael <[email protected]>
AuthorDate: Sat Aug 30 08:02:24 2025 -0500

    ecore_drm2: Add function to set a crtc position
---
 src/lib/ecore_drm2/ecore_drm2_crtcs.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/src/lib/ecore_drm2/ecore_drm2_crtcs.c b/src/lib/ecore_drm2/ecore_drm2_crtcs.c
index dbd2d8eacb..355fe65299 100644
--- a/src/lib/ecore_drm2/ecore_drm2_crtcs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_crtcs.c
@@ -310,6 +310,30 @@ err:
    return result;
 }
 
+Eina_Bool
+_ecore_drm2_crtcs_position_set(Ecore_Drm2_Crtc *crtc, uint32_t conn_id, int x, int y)
+{
+   drmModeCrtcPtr cptr;
+   int ret;
+
+   EINA_SAFETY_ON_NULL_RETURN_VAL(crtc, EINA_FALSE);
+
+   cptr = sym_drmModeGetCrtc(crtc->fd, crtc->id);
+   if (!cptr) return EINA_FALSE;
+
+   ret = sym_drmModeSetCrtc(crtc->fd, crtc->id, cptr->buffer_id, x, y,
+                            &conn_id, 1, &cptr->mode);
+   if (ret)
+     {
+        ERR("Failed to set Crtc Position: %m");
+        sym_drmModeFreeCrtc(cptr);
+        return EINA_FALSE;
+     }
+
+   sym_drmModeFreeCrtc(cptr);
+   return EINA_TRUE;
+}
+
 Eina_Bool
 _ecore_drm2_crtcs_changes_apply(Ecore_Drm2_Crtc *crtc)
 {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to