oops - soemoen changed the other symbols around while i changed the first set
authorCarsten Haitzler <raster@rasterman.com>
Tue, 7 Mar 2006 02:44:16 +0000 (02:44 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Tue, 7 Mar 2006 02:44:16 +0000 (02:44 +0000)
SVN revision: 21063

legacy/evas/src/lib/include/evas_common.h
legacy/evas/src/modules/engines/gl_x11/evas_engine.c
legacy/evas/src/modules/engines/gl_x11/evas_engine.h

index 560c03c1d655ee52160fde582d2b141bb25865bd..e5dba0c2e6e2a1734e3aad0b38c48808e75f5a0b 100644 (file)
@@ -354,6 +354,7 @@ struct _RGBA_Font_Glyph
 {
    FT_Glyph        glyph;
    FT_BitmapGlyph  glyph_out;
+   /* this is a problem - only 1 engine at a time can extend such a font... grrr */
    void           *ext_dat;
    void           (*ext_dat_free) (void *ext_dat);
 };
index b7eec0d0a0bb6f6cffb7bcc727611a8e33dcecaa..e4e53a10b20356a2d1c8acb36b48d39d9480047f 100644 (file)
@@ -257,7 +257,7 @@ eng_output_setup(int w, int h, Display *disp, Drawable draw, Visual *vis, Colorm
    if (!glXQueryExtension(disp, &eb, &evb)) return NULL;
    re = calloc(1, sizeof(Render_Engine));
 
-   re->win = evas_engine_gl_x11_window_new(disp, draw,
+   re->win = eng_window_new(disp, draw,
                                           0 /* FIXME: screen 0 assumption */,
                                           vis, cmap, depth, w, h);
    if (!re->win)
@@ -405,7 +405,7 @@ eng_output_flush(void *data)
 
    re = (Render_Engine *)data;
 //   printf("GL: flush your mush!\n");
-   evas_engine_gl_x11_window_use(re->win);
+   eng_window_use(re->win);
 
 /* SLOW AS ALL HELL! */
 #if 0
@@ -598,7 +598,7 @@ eng_rectangle_draw(void *data, void *context, void *surface, int x, int y, int w
    Render_Engine *re;
 
    re = (Render_Engine *)data;
-   evas_engine_gl_x11_window_use(re->win);
+   eng_window_use(re->win);
    evas_gl_common_rect_draw(re->win->gl_context, context, x, y, w, h);
 }
 
@@ -726,7 +726,7 @@ eng_gradient_draw(void *data, void *context, void *surface, void *gradient, int
    Render_Engine *re;
 
    re = (Render_Engine *)data;
-   evas_engine_gl_x11_window_use(re->win);
+   eng_window_use(re->win);
    evas_gl_common_gradient_draw(re->win->gl_context, context, gradient, x, y, w, h, angle, spread);
 }
 
@@ -737,7 +737,7 @@ eng_image_load(void *data, char *file, char *key, int *error)
 
    re = (Render_Engine *)data;
    *error = 0;
-   evas_engine_gl_x11_window_use(re->win);
+   eng_window_use(re->win);
    return evas_gl_common_image_load(re->win->gl_context, file, key);
 }
 
@@ -747,7 +747,7 @@ eng_image_new_from_data(void *data, int w, int h, DATA32 *image_data)
    Render_Engine *re;
 
    re = (Render_Engine *)data;
-   evas_engine_gl_x11_window_use(re->win);
+   eng_window_use(re->win);
    return evas_gl_common_image_new_from_data(re->win->gl_context, w, h, image_data);
 }
 
@@ -757,7 +757,7 @@ eng_image_new_from_copied_data(void *data, int w, int h, DATA32 *image_data)
    Render_Engine *re;
 
    re = (Render_Engine *)data;
-   evas_engine_gl_x11_window_use(re->win);
+   eng_window_use(re->win);
    return evas_gl_common_image_new_from_copied_data(re->win->gl_context, w, h, image_data);
 }
 
@@ -767,7 +767,7 @@ eng_image_free(void *data, void *image)
    Render_Engine *re;
 
    re = (Render_Engine *)data;
-   evas_engine_gl_x11_window_use(re->win);
+   eng_window_use(re->win);
    evas_gl_common_image_free(image);
 }
 
@@ -788,7 +788,7 @@ eng_image_size_set(void *data, void *image, int w, int h)
    Evas_GL_Image *im, *im_old;
 
    re = (Render_Engine *)data;
-   evas_engine_gl_x11_window_use(re->win);
+   eng_window_use(re->win);
    if (!image) return NULL;
    im_old = image;
    if ((im_old) && (im_old->im->image->w == w) && (im_old->im->image->h == h))
@@ -825,7 +825,7 @@ eng_image_data_get(void *data, void *image, int to_write, DATA32 **image_data)
 
    re = (Render_Engine *)data;
    im = image;
-   evas_engine_gl_x11_window_use(re->win);
+   eng_window_use(re->win);
    evas_common_load_image_data_from_file(im->im);
    if (to_write)
      {
@@ -856,7 +856,7 @@ eng_image_data_put(void *data, void *image, DATA32 *image_data)
 
    re = (Render_Engine *)data;
    im = image;
-   evas_engine_gl_x11_window_use(re->win);
+   eng_window_use(re->win);
    if (image_data != im->im->image->data)
      {
        int w, h;
@@ -878,7 +878,7 @@ eng_image_alpha_set(void *data, void *image, int has_alpha)
    Evas_GL_Image *im;
 
    re = (Render_Engine *)data;
-   evas_engine_gl_x11_window_use(re->win);
+   eng_window_use(re->win);
    im = image;
    if ((has_alpha) && (im->im->flags & RGBA_IMAGE_HAS_ALPHA)) return image;
    else if ((!has_alpha) && (!(im->im->flags & RGBA_IMAGE_HAS_ALPHA))) return image;
@@ -909,7 +909,7 @@ eng_image_alpha_get(void *data, void *image)
 
    re = (Render_Engine *)data;
    im = image;
-   evas_engine_gl_x11_window_use(re->win);
+   eng_window_use(re->win);
    if (im->im->flags & RGBA_IMAGE_HAS_ALPHA) return 1;
    return 0;
 }
@@ -920,7 +920,7 @@ eng_image_draw(void *data, void *context, void *surface, void *image, int src_x,
    Render_Engine *re;
 
    re = (Render_Engine *)data;
-   evas_engine_gl_x11_window_use(re->win);
+   eng_window_use(re->win);
    evas_gl_common_image_draw(re->win->gl_context, context, image,
                             src_x, src_y, src_w, src_h,
                             dst_x, dst_y, dst_w, dst_h,
index eca5984827d088226ad620b04ebc1e0bcb6c251e..27cb0ee62b647e714135bc595bf06ff7bf7d595e 100644 (file)
@@ -29,13 +29,13 @@ extern Colormap     _evas_gl_x11_cmap;
 
 Evas_GL_X11_Window *
   eng_window_new(Display *disp,
-                               Window   win,
-                               int      screen,
-                               Visual  *vis,
-                               Colormap cmap,
-                               int      depth,
-                               int      w,
-                               int      h);
+                Window   win,
+                int      screen,
+                Visual  *vis,
+                Colormap cmap,
+                int      depth,
+                int      w,
+                int      h);
 void
   eng_window_free(Evas_GL_X11_Window *gw);
 void