Diff

Differences From Artifact [9668a806b2]:

To Artifact [b86a08dc47]:


503
504
505
506
507
508
509
510

511
512
513
514
515
516
517
503
504
505
506
507
508
509

510
511
512
513
514
515
516
517







-
+








	RegisterClass(&wndclass);
    }

    hwnd = NULL;

    term = term_init(&cfg, NULL);
    logctx = log_init(NULL);
    logctx = log_init(NULL, &cfg);
    term_provide_logctx(term, logctx);

    cfgtopalette();

    /*
     * Guess some defaults for the window size. This all gets
     * updated later, so we don't really care too much. However, we
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766


1767
1768
1769
1770
1771
1772
1773
1774
1756
1757
1758
1759
1760
1761
1762




1763
1764

1765
1766
1767
1768
1769
1770
1771







-
-
-
-
+
+
-







		    /* Gracefully unzoom if necessary */
		    if (IsZoomed(hwnd) &&
			(cfg.resize_action == RESIZE_DISABLED)) {
			ShowWindow(hwnd, SW_RESTORE);
		    }
		}

		if (strcmp(prev_cfg.logfilename, cfg.logfilename) ||
		    prev_cfg.logtype != cfg.logtype) {
		    logfclose(logctx); /* reset logging */
		    logfopen(logctx);
		/* Pass new config data to the logging module */
		log_reconfig(logctx, &cfg);
		}

		sfree(logpal);
		/*
		 * Flush the line discipline's edit buffer in the
		 * case where local editing has just been disabled.
		 */
		ldisc_send(ldisc, NULL, 0, 0);