summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-01-17 10:34:33 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-01-17 10:58:43 -0500
commitc6ebe8241e274103d89bb2d41e54829bef7ab0c3 (patch)
tree46b6adce514e3682fb1affe651aecc80a60b54f1 /src/lib/ecore_drm2
parent31475f80a082c2ea3592accfec793c588cecc208 (diff)
ecore-drm2: Fix formatting
NB: No functional changes
Diffstat (limited to 'src/lib/ecore_drm2')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_outputs.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c
index 928a16c32d..8cebea513b 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -1609,29 +1609,29 @@ _blanktime_fallback(Ecore_Drm2_Output *output, int sequence, long *sec, long *us
1609EAPI Eina_Bool 1609EAPI Eina_Bool
1610ecore_drm2_output_blanktime_get(Ecore_Drm2_Output *output, int sequence, long *sec, long *usec) 1610ecore_drm2_output_blanktime_get(Ecore_Drm2_Output *output, int sequence, long *sec, long *usec)
1611{ 1611{
1612 drmVBlank v; 1612 drmVBlank v;
1613 int ret; 1613 int ret;
1614 Eina_Bool success; 1614 Eina_Bool success;
1615 1615
1616 EINA_SAFETY_ON_NULL_RETURN_VAL(output, EINA_FALSE); 1616 EINA_SAFETY_ON_NULL_RETURN_VAL(output, EINA_FALSE);
1617 EINA_SAFETY_ON_NULL_RETURN_VAL(sec, EINA_FALSE); 1617 EINA_SAFETY_ON_NULL_RETURN_VAL(sec, EINA_FALSE);
1618 EINA_SAFETY_ON_NULL_RETURN_VAL(usec, EINA_FALSE); 1618 EINA_SAFETY_ON_NULL_RETURN_VAL(usec, EINA_FALSE);
1619 1619
1620 memset(&v, 0, sizeof(v)); 1620 memset(&v, 0, sizeof(v));
1621 v.request.type = DRM_VBLANK_RELATIVE; 1621 v.request.type = DRM_VBLANK_RELATIVE;
1622 v.request.sequence = sequence; 1622 v.request.sequence = sequence;
1623 ret = sym_drmWaitVBlank(output->fd, &v); 1623 ret = sym_drmWaitVBlank(output->fd, &v);
1624 success = (ret == 0) && (v.reply.tval_sec > 0 || v.reply.tval_usec > 0); 1624 success = (ret == 0) && (v.reply.tval_sec > 0 || v.reply.tval_usec > 0);
1625 if (!success) 1625 if (!success)
1626 { 1626 {
1627 ret = _blanktime_fallback(output, sequence, sec, usec); 1627 ret = _blanktime_fallback(output, sequence, sec, usec);
1628 if (ret) return EINA_FALSE; 1628 if (ret) return EINA_FALSE;
1629 return EINA_TRUE; 1629 return EINA_TRUE;
1630 } 1630 }
1631 1631
1632 *sec = v.reply.tval_sec; 1632 *sec = v.reply.tval_sec;
1633 *usec = v.reply.tval_usec; 1633 *usec = v.reply.tval_usec;
1634 return EINA_TRUE; 1634 return EINA_TRUE;
1635} 1635}
1636 1636
1637EAPI void 1637EAPI void