Enlightenment CVS committal

Author  : kwo
Project : e17
Module  : libs/imlib2

Dir     : e17/libs/imlib2/src/bin


Modified Files:
        imlib2_bumpmap.c imlib2_colorspace.c imlib2_poly.c 


Log Message:
Map after resize to avoid initial placement silliness.

===================================================================
RCS file: /cvs/e/e17/libs/imlib2/src/bin/imlib2_bumpmap.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- imlib2_bumpmap.c    20 Sep 2005 17:28:23 -0000      1.3
+++ imlib2_bumpmap.c    10 May 2008 20:27:28 -0000      1.4
@@ -61,7 +61,6 @@
    XSelectInput(disp, win,
                 ButtonPressMask | ButtonReleaseMask | ButtonMotionMask |
                 PointerMotionMask | ExposureMask);
-   XMapWindow(disp, win);
 
    /**
     * Start rendering
@@ -81,9 +80,11 @@
    imlib_context_set_image(im_bg);
    w = imlib_image_get_width();
    h = imlib_image_get_height();
-   printf("Resizing Window to %d by %d\n", w, h);
+
    XResizeWindow(disp, win, w, h);
+   XMapWindow(disp, win);
    XSync(disp, False);
+
    x = -9999;
    y = -9999;
    while (1)
===================================================================
RCS file: /cvs/e/e17/libs/imlib2/src/bin/imlib2_colorspace.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- imlib2_colorspace.c 29 Jan 2005 20:57:54 -0000      1.2
+++ imlib2_colorspace.c 10 May 2008 20:27:28 -0000      1.3
@@ -51,7 +51,6 @@
    XSelectInput(disp, win,
                 ButtonPressMask | ButtonReleaseMask | ButtonMotionMask |
                 PointerMotionMask | ExposureMask | KeyPressMask);
-   XMapWindow(disp, win);
 
    /**
     * Start rendering
@@ -72,7 +71,9 @@
    h = imlib_image_get_height();
    imlib_context_set_color(128, 128, 255, 255);
    imlib_image_fill_rectangle(0, 0, w, h);
+
    XResizeWindow(disp, win, w, h);
+   XMapWindow(disp, win);
    XSync(disp, False);
 
    while (1)
===================================================================
RCS file: /cvs/e/e17/libs/imlib2/src/bin/imlib2_poly.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- imlib2_poly.c       29 Jan 2005 20:57:54 -0000      1.2
+++ imlib2_poly.c       10 May 2008 20:27:28 -0000      1.3
@@ -50,7 +50,6 @@
    XSelectInput(disp, win,
                 ButtonPressMask | ButtonReleaseMask | ButtonMotionMask |
                 PointerMotionMask | ExposureMask | KeyPressMask);
-   XMapWindow(disp, win);
 
    /**
     * Start rendering
@@ -69,7 +68,9 @@
    h = imlib_image_get_height();
    imlib_context_set_color(0, 0, 0, 255);
    imlib_image_fill_rectangle(0, 0, w, h);
+
    XResizeWindow(disp, win, w, h);
+   XMapWindow(disp, win);
    XSync(disp, False);
 
    poly = imlib_polygon_new();



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to