summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2009-04-14 23:43:06 +0000
committerChristopher Michael <cpmichael1@comcast.net>2009-04-14 23:43:06 +0000
commit173ff3aeb7c6cccac6340366f2bda2be85dd9ec4 (patch)
treea137076daf408f0f8d5eb51315dc0ce51061d484
parent1baa7c97c6904ccfae69478e7629daf61d2dfb80 (diff)
No need to get the ecore_x_display twice.
SVN revision: 40064
-rw-r--r--src/bin/main.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 449f427..a431f8c 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -382,7 +382,6 @@ _em_init_imlib(void)
382{ 382{
383 Ecore_X_Display *disp; 383 Ecore_X_Display *disp;
384 Ecore_X_Window root; 384 Ecore_X_Window root;
385// Ecore_X_Screen *screen;
386 385
387 /* get the display */ 386 /* get the display */
388 disp = ecore_x_display_get(); 387 disp = ecore_x_display_get();
@@ -390,14 +389,10 @@ _em_init_imlib(void)
390 /* get the root window */ 389 /* get the root window */
391 root = RootWindow(disp, 0); 390 root = RootWindow(disp, 0);
392 391
393 /* get default screen */
394// screen = ecore_x_default_screen_get();
395
396 /* setup imlib in preparation for shot */ 392 /* setup imlib in preparation for shot */
397 imlib_context_set_display(disp); 393 imlib_context_set_display(disp);
398 imlib_context_set_drawable(root); 394 imlib_context_set_drawable(root);
399 imlib_context_set_visual(DefaultVisual(disp, 395 imlib_context_set_visual(DefaultVisual(disp, DefaultScreen(disp)));
400 DefaultScreen(ecore_x_display_get())));
401} 396}
402 397
403static void 398static void