shithub: puzzles

Download patch

ref: 7ba4c00b981893d99ce47e6e43d773ff1168ff88
parent: 2f999a9a595714fe62630b68065cee8d668ba13e
author: Simon Tatham <anakin@pobox.com>
date: Tue May 4 06:24:08 EDT 2004

Forgot to set up the initial value of checkboxes.

[originally from svn r4199]

--- a/windows.c
+++ b/windows.c
@@ -684,6 +684,7 @@
 	    mkctrl(fe, col1l, col2r, y, y+height, "BUTTON",
 		   BS_NOTIFY | BS_AUTOCHECKBOX | WS_TABSTOP,
 		   0, i->name, (j->ctlid = id++));
+	    CheckDlgButton(fe->cfgbox, j->ctlid, (i->ival != 0));
 	    y += height;
 	    break;