X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwlayout.c;h=24424662286c0accd9715fcc2503a9c141432172;hb=8c94141e6c30dc94777dee5824cfbf027a18f940;hp=0261736f8f980c8171da0d7a37d2d7663f0d8baa;hpb=d413d3ed517beac460ae9ed147e6200a57125bb5;p=xboard.git diff --git a/winboard/wlayout.c b/winboard/wlayout.c index 0261736..2442466 100644 --- a/winboard/wlayout.c +++ b/winboard/wlayout.c @@ -3,6 +3,8 @@ * * Author: Alessandro Scotti (Dec 2005) * + * Copyright 2005 Alessandro Scotti + * * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify @@ -31,6 +33,7 @@ #include #include "common.h" +#include "frontend.h" #include "winboard.h" VOID RestoreWindowPlacement( HWND hWnd, WindowPlacement * wp ) @@ -91,7 +94,7 @@ static BOOL IsDefaultPlacement( WindowPlacement * wp ) return result; } -static BOOL GetActualPlacement( HWND hWnd, WindowPlacement * wp ) +BOOL GetActualPlacement( HWND hWnd, WindowPlacement * wp ) { BOOL result = FALSE; @@ -163,8 +166,6 @@ VOID ReattachAfterSize( LPRECT lprcOldPos, int new_w, int new_h, HWND hWndChild, if( ! IsDefaultPlacement( pwpChild ) ) { GetActualPlacement( hWndChild, pwpChild ); -if(appData.debugMode) fprintf(debugFP, "resize, old=(%d,%d,%d,%d), new=(%d,%d)\n", -lprcOldPos->left,lprcOldPos->top,lprcOldPos->right,lprcOldPos->bottom,new_w,new_h); if( IsAttachedByWindowPlacement( lprcOldPos, pwpChild ) ) { /* Get delta of lower right corner */ int delta_x = new_w - (lprcOldPos->right - lprcOldPos->left);