summaryrefslogtreecommitdiff
path: root/legacy/evas/src/modules/engines/gl_x11/evas_engine.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2010-01-25 14:02:14 +0000
committerCarsten Haitzler <raster@rasterman.com>2010-01-25 14:02:14 +0000
commit47ad18fafcebd8c9e0b0f01fc60387742123525b (patch)
tree7aa475a996856baa8813974d08c0529e1b8e654d /legacy/evas/src/modules/engines/gl_x11/evas_engine.c
parent0948ee7e207f6cbf3fbc16fef00f1ece94bc6c29 (diff)
more debugging
SVN revision: 45551
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/modules/engines/gl_x11/evas_engine.c37
1 files changed, 27 insertions, 10 deletions
diff --git a/legacy/evas/src/modules/engines/gl_x11/evas_engine.c b/legacy/evas/src/modules/engines/gl_x11/evas_engine.c
index a1fd9b6d58..f469d145ad 100644
--- a/legacy/evas/src/modules/engines/gl_x11/evas_engine.c
+++ b/legacy/evas/src/modules/engines/gl_x11/evas_engine.c
@@ -206,16 +206,33 @@ eng_setup(Evas *e, void *in)
206 else 206 else
207 { 207 {
208 re = e->engine.data.output; 208 re = e->engine.data.output;
209 eng_window_free(re->win); 209 if ((info->info.display != re->win->disp) ||
210 printf("resize eng_window_new: %i %i\n", e->output.w, e->output.h); 210 (info->info.drawable != re->win->win) ||
211 re->win = eng_window_new(info->info.display, 211 (0 != re->win->screen) || /* FIXME: screen 0 assumption */
212 info->info.drawable, 212 (info->info.visual != re->win->visual) ||
213 0,/* FIXME: screen 0 assumption */ 213 (info->info.colormap != re->win->colormap) ||
214 info->info.visual, 214 (info->info.depth != re->win->depth))
215 info->info.colormap, 215 {
216 info->info.depth, 216 printf("re-init eng_window_new: %i %i\n", e->output.w, e->output.h);
217 e->output.w, 217 eng_window_free(re->win);
218 e->output.h); 218 re->win = eng_window_new(info->info.display,
219 info->info.drawable,
220 0,/* FIXME: screen 0 assumption */
221 info->info.visual,
222 info->info.colormap,
223 info->info.depth,
224 e->output.w,
225 e->output.h);
226 }
227 else if ((re->win->w != e->output.w) ||
228 (re->win->h != e->output.h))
229 {
230 printf("resize eng_window_new: %i %i\n", e->output.w, e->output.h);
231 re->win->w = e->output.w;
232 re->win->h = e->output.h;
233 eng_window_use(re->win);
234 evas_gl_common_context_resize(re->win->gl_context, re->win->w, re->win->h);
235 }
219 236
220 } 237 }
221 if (!e->engine.data.output) return 0; 238 if (!e->engine.data.output) return 0;