forked from enlightenment/efl
parent
0948ee7e20
commit
47ad18fafc
|
@ -206,16 +206,33 @@ eng_setup(Evas *e, void *in)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
re = e->engine.data.output;
|
re = e->engine.data.output;
|
||||||
eng_window_free(re->win);
|
if ((info->info.display != re->win->disp) ||
|
||||||
printf("resize eng_window_new: %i %i\n", e->output.w, e->output.h);
|
(info->info.drawable != re->win->win) ||
|
||||||
re->win = eng_window_new(info->info.display,
|
(0 != re->win->screen) || /* FIXME: screen 0 assumption */
|
||||||
info->info.drawable,
|
(info->info.visual != re->win->visual) ||
|
||||||
0,/* FIXME: screen 0 assumption */
|
(info->info.colormap != re->win->colormap) ||
|
||||||
info->info.visual,
|
(info->info.depth != re->win->depth))
|
||||||
info->info.colormap,
|
{
|
||||||
info->info.depth,
|
printf("re-init eng_window_new: %i %i\n", e->output.w, e->output.h);
|
||||||
e->output.w,
|
eng_window_free(re->win);
|
||||||
e->output.h);
|
re->win = eng_window_new(info->info.display,
|
||||||
|
info->info.drawable,
|
||||||
|
0,/* FIXME: screen 0 assumption */
|
||||||
|
info->info.visual,
|
||||||
|
info->info.colormap,
|
||||||
|
info->info.depth,
|
||||||
|
e->output.w,
|
||||||
|
e->output.h);
|
||||||
|
}
|
||||||
|
else if ((re->win->w != e->output.w) ||
|
||||||
|
(re->win->h != e->output.h))
|
||||||
|
{
|
||||||
|
printf("resize eng_window_new: %i %i\n", e->output.w, e->output.h);
|
||||||
|
re->win->w = e->output.w;
|
||||||
|
re->win->h = e->output.h;
|
||||||
|
eng_window_use(re->win);
|
||||||
|
evas_gl_common_context_resize(re->win->gl_context, re->win->w, re->win->h);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (!e->engine.data.output) return 0;
|
if (!e->engine.data.output) return 0;
|
||||||
|
|
Loading…
Reference in New Issue