From b462d9bc11eefbfc7062db1cc19cb7ce4c573e5b Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 18 Apr 2019 09:10:49 -0400 Subject: [PATCH] ecore-drm2: Fix API function parameters for background color set Passing int as parameters here is too small for left shifting the colors so make these parameters uint64_t --- src/lib/ecore_drm2/Ecore_Drm2.h | 2 +- src/lib/ecore_drm2/ecore_drm2_outputs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h index 6f074fc5ec..843cfa6a2d 100644 --- a/src/lib/ecore_drm2/Ecore_Drm2.h +++ b/src/lib/ecore_drm2/Ecore_Drm2.h @@ -1194,7 +1194,7 @@ EAPI Eina_Bool ecore_drm2_output_pending_get(Ecore_Drm2_Output *output); * * @since 1.23 */ -EAPI Eina_Bool ecore_drm2_output_background_color_set(Ecore_Drm2_Output *output, int r, int g, int b, int a); +EAPI Eina_Bool ecore_drm2_output_background_color_set(Ecore_Drm2_Output *output, uint64_t r, uint64_t g, uint64_t b, uint64_t a); # endif diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c index a433d54358..dfb2fa93d1 100644 --- a/src/lib/ecore_drm2/ecore_drm2_outputs.c +++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c @@ -1748,7 +1748,7 @@ ecore_drm2_output_relative_to_get(Ecore_Drm2_Output *output) } EAPI Eina_Bool -ecore_drm2_output_background_color_set(Ecore_Drm2_Output *output, int r, int g, int b, int a) +ecore_drm2_output_background_color_set(Ecore_Drm2_Output *output, uint64_t r, uint64_t g, uint64_t b, uint64_t a) { Ecore_Drm2_Crtc_State *cstate;