LRESULT CALLBACK\r
BoardOptionsDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)\r
{\r
- static Boolean mono;\r
+ static Boolean mono, white, flip;\r
static BoardSize size;\r
static COLORREF lsc, dsc, wpc, bpc, hsc, phc;\r
static HBITMAP pieces[3];\r
if (appData.monoMode)\r
CheckDlgButton(hDlg, OPT_Monochrome, TRUE);\r
\r
+ if (appData.allWhite)\r
+ CheckDlgButton(hDlg, OPT_AllWhite, TRUE);\r
+\r
+ if (appData.upsideDown)\r
+ CheckDlgButton(hDlg, OPT_UpsideDown, TRUE);\r
+\r
pieces[0] = DoLoadBitmap(hInst, "n", SAMPLE_SQ_SIZE, "s");\r
pieces[1] = DoLoadBitmap(hInst, "n", SAMPLE_SQ_SIZE, "w");\r
pieces[2] = DoLoadBitmap(hInst, "n", SAMPLE_SQ_SIZE, "o");\r
hsc = highlightSquareColor;\r
phc = premoveHighlightColor;\r
mono = appData.monoMode;\r
+ white= appData.allWhite;\r
+ flip = appData.upsideDown;\r
size = boardSize;\r
\r
SetBoardOptionEnables(hDlg);\r
(wpc != whitePieceColor) ||\r
(bpc != blackPieceColor) ||\r
(hsc != highlightSquareColor) ||\r
+ (flip != appData.upsideDown) ||\r
+ (white != appData.allWhite) ||\r
(phc != premoveHighlightColor)) {\r
\r
lightSquareColor = lsc;\r
highlightSquareColor = hsc;\r
premoveHighlightColor = phc;\r
appData.monoMode = mono;\r
+ appData.allWhite = white;\r
+ appData.upsideDown = flip;\r
\r
InitDrawingColors();\r
InitDrawingSizes(boardSize, 0);\r
mono = !mono;\r
SetBoardOptionEnables(hDlg);\r
break;\r
+\r
+ case OPT_AllWhite:\r
+ white = !white;\r
+ SetBoardOptionEnables(hDlg);\r
+ break;\r
+\r
+ case OPT_UpsideDown:\r
+ flip = !flip;\r
+ SetBoardOptionEnables(hDlg);\r
+ break;\r
}\r
break;\r
}\r