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 7a00b69f4c88cf0fcfa2758cbd87a633b599a17d
Author: Christopher Michael <devilho...@comcast.net>
AuthorDate: Tue Nov 21 07:31:30 2023 -0500

    ecore_drm2: Fix ecore_drm2_display_mode_set function
---
 src/lib/ecore_drm2/ecore_drm2_displays.c | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/src/lib/ecore_drm2/ecore_drm2_displays.c b/src/lib/ecore_drm2/ecore_drm2_displays.c
index 63e4bee5ac..14b0c40fb9 100644
--- a/src/lib/ecore_drm2/ecore_drm2_displays.c
+++ b/src/lib/ecore_drm2/ecore_drm2_displays.c
@@ -614,13 +614,10 @@ ecore_drm2_display_model_get(Ecore_Drm2_Display *disp)
 EAPI void
 ecore_drm2_display_mode_set(Ecore_Drm2_Display *disp, Ecore_Drm2_Display_Mode *mode, int x, int y)
 {
-   Ecore_Drm2_Crtc_State *cstate;
-
    EINA_SAFETY_ON_NULL_RETURN(disp);
    EINA_SAFETY_ON_NULL_RETURN(mode);
    EINA_SAFETY_ON_NULL_RETURN(disp->crtc);
 
-   /* TODO, FIXME */
    if ((disp->state.current->x != x) ||
        (disp->state.current->y != y))
      {
@@ -629,14 +626,10 @@ ecore_drm2_display_mode_set(Ecore_Drm2_Display *disp, Ecore_Drm2_Display_Mode *m
         disp->state.pending->changes |= ECORE_DRM2_DISPLAY_STATE_POSITION;
      }
 
-   cstate = disp->crtc->state.current;
-   if (cstate->mode != mode)
+   if (disp->state.current->mode != mode)
      {
-        Ecore_Drm2_Crtc_State *pstate;
-
-        pstate = disp->crtc->state.pending;
-        pstate->mode = mode;
-        pstate->changes |= ECORE_DRM2_CRTC_STATE_MODE;
+        disp->state.pending->mode = mode;
+        disp->state.pending->changes |= ECORE_DRM2_DISPLAY_STATE_MODE;
      }
 }
 

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

Reply via email to