X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwinboard.c;h=db317cea7e245931db8f8873c26eaf220c554827;hb=94d2b2b896207fac048806e05c8a114297b1a513;hp=3515cb3376143090cf4d840c54839a14ca954584;hpb=63dc09b62c3a6430c671b8fd5ebd4be691167173;p=xboard.git diff --git a/winboard/winboard.c b/winboard/winboard.c index 3515cb3..db317ce 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -166,7 +166,7 @@ BoardSize boardSize; Boolean chessProgram; //static int boardX, boardY; int minX, minY; // [HGM] placement: volatile limits on upper-left corner -int squareSize, lineGap, minorSize, border; +int squareSize, lineGap, minorSize; static int winW, winH; static RECT messageRect, whiteRect, blackRect, leftLogoRect, rightLogoRect; // [HGM] logo static int logoHeight = 0; @@ -825,7 +825,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 0, /* lowest message to examine */ 0)) /* highest message to examine */ { - HandleMessage(msg); + HandleMessage(&msg); } @@ -938,7 +938,7 @@ DoEvents () 0, /* highest message to examine */ PM_REMOVE)) { - HandleMessage(msg); + HandleMessage(&msg); } } @@ -1282,6 +1282,7 @@ LFfromMFP(LOGFONT* lf, MyFontParams *mfp) lf->lfStrikeOut = mfp->strikeout; lf->lfCharSet = mfp->charset; lf->lfOutPrecision = OUT_DEFAULT_PRECIS; + lf->lfClipPrecision = CLIP_DEFAULT_PRECIS; lf->lfQuality = DEFAULT_QUALITY; lf->lfPitchAndFamily = DEFAULT_PITCH|FF_DONTCARE; @@ -4512,6 +4513,7 @@ Promotion(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) char promoChar; switch (message) { + case WM_INITDIALOG: /* message: initialize dialog box */ /* Center the dialog over the application window */ CenterWindow(hDlg, GetWindow(hDlg, GW_OWNER)); @@ -5737,6 +5739,7 @@ WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) default: /* Passes it on if unprocessed */ return (DefWindowProc(hwnd, message, wParam, lParam)); } + return 0; }