Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/dox


Modified Files:
        Makefile.am dox.c dox.h text.c 


Log Message:
Add X_CFLAGS to INCLUDES. Rename root to VRoot to avoid warnings with -Wshadow.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/dox/Makefile.am,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- Makefile.am 24 Apr 2004 13:16:28 -0000      1.11
+++ Makefile.am 4 May 2004 19:04:19 -0000       1.12
@@ -7,7 +7,7 @@
 
 LDADD = $(TTF_LIBS) $(FNLIB_LIBS) $(IMLIB_LIBS) $(X_LIBS) $(XINERAMA_LIBS) -lX11 -lm
 
-INCLUDES = $(IMLIB_CFLAGS) -I$(top_builddir) -I$(top_srcdir)/intl
+INCLUDES = -I$(top_builddir) -I$(top_srcdir)/intl $(IMLIB_CFLAGS) $(X_CFLAGS)
 
 DEFS=-DENLIGHTENMENT_ROOT=\"@[EMAIL PROTECTED]" -DENLIGHTENMENT_BIN=\"@[EMAIL 
PROTECTED]"
 
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/dox/dox.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -3 -r1.29 -r1.30
--- dox.c       27 Apr 2004 18:35:39 -0000      1.29
+++ dox.c       4 May 2004 19:04:19 -0000       1.30
@@ -75,7 +75,7 @@
 } MWMHints;
 
 Display            *disp;
-Root                root;
+Root                VRoot;
 
 #if !USE_IMLIB2
 ImlibData          *pI1Ctx;
@@ -110,7 +110,7 @@
 
    attr.backing_store = NotUseful;
    attr.override_redirect = False;
-   attr.colormap = root.cmap;
+   attr.colormap = VRoot.cmap;
    attr.border_pixel = 0;
    attr.background_pixel = 0;
    attr.save_under = False;
@@ -119,8 +119,8 @@
    mwm.decorations = 0;
    mwm.inputMode = 0;
 /*   a = XInternAtom(disp, "_MOTIF_WM_HINTS", False); */
-   win = XCreateWindow(disp, parent, x, y, ww, hh, 0, root.depth,
-                      InputOutput, root.vis,
+   win = XCreateWindow(disp, parent, x, y, ww, hh, 0, VRoot.depth,
+                      InputOutput, VRoot.vis,
                       CWOverrideRedirect | CWSaveUnder | CWBackingStore |
                       CWColormap | CWBackPixel | CWBorderPixel, &attr);
    XSetWindowBackground(disp, win, 0);
@@ -254,18 +254,18 @@
    /* I dont want any internationalisation of my numeric input & output */
    setlocale(LC_NUMERIC, "C");
 
-   root.scr = DefaultScreen(disp);
+   VRoot.scr = DefaultScreen(disp);
 #if USE_IMLIB2
-   root.win = DefaultRootWindow(disp);
-   root.vis = DefaultVisual(disp, root.scr);
-   root.depth = DefaultDepth(disp, root.scr);
-   root.cmap = DefaultColormap(disp, root.scr);
+   VRoot.win = DefaultRootWindow(disp);
+   VRoot.vis = DefaultVisual(disp, VRoot.scr);
+   VRoot.depth = DefaultDepth(disp, VRoot.scr);
+   VRoot.cmap = DefaultColormap(disp, VRoot.scr);
 
    imlib_set_color_usage(128);
 
    imlib_context_set_display(disp);
-   imlib_context_set_visual(root.vis);
-   imlib_context_set_colormap(root.cmap);
+   imlib_context_set_visual(VRoot.vis);
+   imlib_context_set_colormap(VRoot.cmap);
    imlib_context_set_dither(1);
    imlib_context_set_dither_mask(0);
 #else
@@ -274,10 +274,10 @@
    params.pixmapcachesize = (w * h * 3 * 2 * 8);
    pI1Ctx = Imlib_init_with_params(disp, &params);
    Imlib_set_render_type(pI1Ctx, RT_DITHER_TRUECOL);
-   root.win = pI1Ctx->x.root;
-   root.vis = Imlib_get_visual(pI1Ctx);
-   root.depth = pI1Ctx->x.depth;
-   root.cmap = Imlib_get_colormap(pI1Ctx);
+   VRoot.win = pI1Ctx->x.root;
+   VRoot.vis = Imlib_get_visual(pI1Ctx);
+   VRoot.depth = pI1Ctx->x.depth;
+   VRoot.cmap = Imlib_get_colormap(pI1Ctx);
 #endif
 #if USE_FNLIB
    pFnlibData = Fnlib_init(pI1Ctx);
@@ -360,7 +360,7 @@
           int                 num;
           XineramaScreenInfo *screens;
 
-          XQueryPointer(disp, root.win, &rt, &ch, &pointer_x, &pointer_y,
+          XQueryPointer(disp, VRoot.win, &rt, &ch, &pointer_x, &pointer_y,
                         &d, &d, &ud);
 
           screens = XineramaQueryScreens(disp, &num);
@@ -390,7 +390,7 @@
 
    }
 #endif
-   win_main = CreateWindow(root.win, wx, wy, w, h + t);
+   win_main = CreateWindow(VRoot.win, wx, wy, w, h + t);
    win_title =
       XCreateSimpleWindow(disp, win_main, 0, 0, (w - 64 - 64 - t), t, 0, 0, 0);
    win_prev =
@@ -408,7 +408,7 @@
    XSelectInput(disp, win_text, ButtonPressMask | ButtonReleaseMask |
                KeyPressMask | KeyReleaseMask | PointerMotionMask);
 
-   draw = XCreatePixmap(disp, win_text, w, h, root.depth);
+   draw = XCreatePixmap(disp, win_text, w, h, VRoot.depth);
 
    ApplyImage1(win_title, im_title);
    ApplyImage1(win_prev, im_prev1);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/dox/dox.h,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- dox.h       24 Apr 2004 13:16:28 -0000      1.30
+++ dox.h       4 May 2004 19:04:19 -0000       1.31
@@ -58,12 +58,12 @@
 #define IMLIB1_SET_CONTEXT(root_ctx)
 
 #define EAllocColor(pxc) \
-       XAllocColor(disp, root.cmap, pxc)
+       XAllocColor(disp, VRoot.cmap, pxc)
 
 #define IMLIB_FREE_PIXMAP_AND_MASK(pmap, mask) \
        imlib_free_pixmap_and_mask(pmap)
 
-#define IC_RenderDepth() DefaultDepth(disp, root.scr)
+#define IC_RenderDepth() DefaultDepth(disp, VRoot.scr)
 
 #else
 
@@ -314,7 +314,7 @@
 Link               *RenderPage(Window win, int page_num, int w, int h);
 
 extern Display     *disp;
-extern Root         root;
+extern Root         VRoot;
 
 #if USE_FNLIB
 extern FnlibData   *pFnlibData;
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/dox/text.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- text.c      21 Mar 2004 01:37:30 -0000      1.15
+++ text.c      4 May 2004 19:04:19 -0000       1.16
@@ -292,25 +292,25 @@
                  EAllocColor(&ts->bg_col);
                  XSetForeground(disp, gc, ts->bg_col.pixel);
                  EFont_draw_string(disp, win, gc, xx + 1, yy + 1,
-                                   lines[i], ts->efont, root.vis, root.cmap);
+                                   lines[i], ts->efont, VRoot.vis, VRoot.cmap);
               }
             else if (ts->effect == 2)
               {
                  EAllocColor(&ts->bg_col);
                  XSetForeground(disp, gc, ts->bg_col.pixel);
                  EFont_draw_string(disp, win, gc, xx - 1, yy,
-                                   lines[i], ts->efont, root.vis, root.cmap);
+                                   lines[i], ts->efont, VRoot.vis, VRoot.cmap);
                  EFont_draw_string(disp, win, gc, xx + 1, yy,
-                                   lines[i], ts->efont, root.vis, root.cmap);
+                                   lines[i], ts->efont, VRoot.vis, VRoot.cmap);
                  EFont_draw_string(disp, win, gc, xx, yy - 1,
-                                   lines[i], ts->efont, root.vis, root.cmap);
+                                   lines[i], ts->efont, VRoot.vis, VRoot.cmap);
                  EFont_draw_string(disp, win, gc, xx, yy + 1,
-                                   lines[i], ts->efont, root.vis, root.cmap);
+                                   lines[i], ts->efont, VRoot.vis, VRoot.cmap);
               }
             EAllocColor(&ts->fg_col);
             XSetForeground(disp, gc, ts->fg_col.pixel);
             EFont_draw_string(disp, win, gc, xx, yy,
-                              lines[i], ts->efont, root.vis, root.cmap);
+                              lines[i], ts->efont, VRoot.vis, VRoot.cmap);
             yy += ascent + descent;
          }
      }




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to