forked from enlightenment/efl
ecore-drm: Fix ecore_drm_device_window_set to use an unsigned int
@fix: The majority of ecore_evas code expects that the 'window' returned from ecore_evas_window_get be an Ecore_Window. Previously, this was not possible as this function was using a void pointer. This change fixes that issue. Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
0311cb6091
commit
0368c4e194
|
@ -142,7 +142,7 @@ EAPI Eina_Bool ecore_drm_device_master_get(Ecore_Drm_Device *dev);
|
||||||
EAPI Eina_Bool ecore_drm_device_master_set(Ecore_Drm_Device *dev);
|
EAPI Eina_Bool ecore_drm_device_master_set(Ecore_Drm_Device *dev);
|
||||||
EAPI Eina_Bool ecore_drm_device_master_drop(Ecore_Drm_Device *dev);
|
EAPI Eina_Bool ecore_drm_device_master_drop(Ecore_Drm_Device *dev);
|
||||||
EAPI int ecore_drm_device_fd_get(Ecore_Drm_Device *dev);
|
EAPI int ecore_drm_device_fd_get(Ecore_Drm_Device *dev);
|
||||||
EAPI void ecore_drm_device_window_set(Ecore_Drm_Device *dev, void *window);
|
EAPI void ecore_drm_device_window_set(Ecore_Drm_Device *dev, unsigned int window);
|
||||||
EAPI const char *ecore_drm_device_name_get(Ecore_Drm_Device *dev);
|
EAPI const char *ecore_drm_device_name_get(Ecore_Drm_Device *dev);
|
||||||
|
|
||||||
EAPI Eina_Bool ecore_drm_tty_open(Ecore_Drm_Device *dev, const char *name);
|
EAPI Eina_Bool ecore_drm_tty_open(Ecore_Drm_Device *dev, const char *name);
|
||||||
|
|
|
@ -597,7 +597,7 @@ ecore_drm_device_fd_get(Ecore_Drm_Device *dev)
|
||||||
* @since 1.10
|
* @since 1.10
|
||||||
*/
|
*/
|
||||||
EAPI void
|
EAPI void
|
||||||
ecore_drm_device_window_set(Ecore_Drm_Device *dev, void *window)
|
ecore_drm_device_window_set(Ecore_Drm_Device *dev, unsigned int window)
|
||||||
{
|
{
|
||||||
/* check for valid device */
|
/* check for valid device */
|
||||||
if ((!dev) || (dev->drm.fd < 0)) return;
|
if ((!dev) || (dev->drm.fd < 0)) return;
|
||||||
|
|
|
@ -280,7 +280,7 @@ struct _Ecore_Drm_Device
|
||||||
|
|
||||||
struct xkb_context *xkb_ctx;
|
struct xkb_context *xkb_ctx;
|
||||||
|
|
||||||
void *window;
|
unsigned int window;
|
||||||
|
|
||||||
/* #ifdef HAVE_GBM */
|
/* #ifdef HAVE_GBM */
|
||||||
/* struct gbm_device *gbm; */
|
/* struct gbm_device *gbm; */
|
||||||
|
|
Loading…
Reference in New Issue