diff --git a/mlx_init.c b/mlx_init.c index 7a8db8f..66cdf1b 100644 --- a/mlx_init.c +++ b/mlx_init.c @@ -49,24 +49,8 @@ void *mlx_init() int mlx_int_deal_shm(t_xvar *xvar) { - int use_pshm; - int bidon; - char *dpy; - char buff[33]; - - xvar->use_xshm = XShmQueryVersion(xvar->display,&bidon,&bidon,&(use_pshm));- if (xvar->use_xshm && use_pshm) - xvar->pshm_format = XShmPixmapFormat(xvar->display); - else - xvar->pshm_format = -1; - gethostname(buff,32); - dpy = getenv(ENV_DISPLAY); - if (dpy && strlen(dpy) && *dpy!=':' && strncmp(dpy,buff,strlen(buff)) && - strncmp(dpy,LOCALHOST,strlen(LOCALHOST)) ) - { - xvar->pshm_format = -1; - xvar->use_xshm = 0; - } + xvar->pshm_format = -1; + xvar->use_xshm = 0; } /*