if (reset_mem) {
if (reset_mem == 1) {
void do_new_fb(int reset_mem) {	XImage *fb;	char *old_main = main_fb;	char *old_rfb  = rfb_fb;	/* for threaded we really should lock libvncserver out. */	if (use_threads) {		rfbLog("warning: changing framebuffers while threaded may\n");		rfbLog(" not work, do not use -threads if problems arise.\n");	}	if (reset_mem) {		clean_shm(0);		free_tiles();	}	fb = initialize_xdisplay_fb();	initialize_screen(NULL, NULL, fb);	if (reset_mem) {		initialize_tiles();		initialize_blackouts_and_xinerama();		initialize_polling_images();	}	if (old_main != old_rfb && old_main) {		free(old_main);	}	if (old_rfb) {		free(old_rfb);	}	fb0 = fb;}