From 2604a83a44200083232830e9cc766c8f0e152329 Mon Sep 17 00:00:00 2001 From: devilhorns Date: Tue, 26 Jul 2011 13:17:52 +0000 Subject: [PATCH] Ecore_X: Xlib uses screen number, not screen object. Fix !! Bad DH, spank spank ;) Thanks antognolli for the report :) git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@61760 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_x/xlib/ecore_x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/ecore_x/xlib/ecore_x.c b/src/lib/ecore_x/xlib/ecore_x.c index 58a4a09..3198466 100644 --- a/src/lib/ecore_x/xlib/ecore_x.c +++ b/src/lib/ecore_x/xlib/ecore_x.c @@ -1916,7 +1916,7 @@ ecore_x_visual_id_get(Ecore_X_Visual visual) EAPI Ecore_X_Visual ecore_x_default_visual_get(Ecore_X_Display *disp, Ecore_X_Screen *screen) { - return DefaultVisual(disp, screen); + return DefaultVisual(disp, ecore_x_screen_index_get(screen)); } /** @@ -1931,7 +1931,7 @@ ecore_x_default_visual_get(Ecore_X_Display *disp, Ecore_X_Screen *screen) EAPI Ecore_X_Colormap ecore_x_default_colormap_get(Ecore_X_Display *disp, Ecore_X_Screen *screen) { - return DefaultColormap(disp, screen); + return DefaultColormap(disp, ecore_x_screen_index_get(screen)); } /** @@ -1946,7 +1946,7 @@ ecore_x_default_colormap_get(Ecore_X_Display *disp, Ecore_X_Screen *screen) EAPI int ecore_x_default_depth_get(Ecore_X_Display *disp, Ecore_X_Screen *screen) { - return DefaultDepth(disp, screen); + return DefaultDepth(disp, ecore_x_screen_index_get(screen)); } /*****************************************************************************/ -- 2.7.4