2013-10-30 01:02 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* src/compiler/hbopt.c
    * minor: 1 => HB_TRUE

  * src/rtl/gtwvt/gtwvt.c
    ! clear margins leaving maximized mode
This commit is contained in:
Przemysław Czerpak
2013-10-30 01:02:38 +01:00
parent f6a3c407e3
commit b33db4fc79
3 changed files with 14 additions and 6 deletions

View File

@@ -1422,7 +1422,7 @@ static void hb_compPCodeEnumAssignedUnused( HB_COMP_DECL, PHB_HFUNC pFunc, PHB_O
bCodeNext2 == HB_P_DECEQ ||
bCodeNext2 == HB_P_INCEQ ) )
{
fCheck = 1;
fCheck = HB_TRUE;
}
}

View File

@@ -1816,14 +1816,15 @@ static void hb_gt_wvt_FitSize( PHB_GTWVT pWVT )
pWVT->MarginLeft = ( wi.right - wi.left - width ) / 2;
pWVT->MarginTop = ( wi.bottom - wi.top - height ) / 2;
}
else if( wi.right - wi.left != width || wi.bottom - wi.top != height )
/* above condition is necessary to avoid infinite
* recursive in WInCE builds
*/
else
{
pWVT->MarginLeft = 0;
pWVT->MarginTop = 0;
SetWindowPos( pWVT->hWnd, NULL, left, top, width, height, SWP_NOZORDER );
if( wi.right - wi.left != width || wi.bottom - wi.top != height )
/* above condition is necessary to avoid infinite
* recursive in WInCE builds
*/
SetWindowPos( pWVT->hWnd, NULL, left, top, width, height, SWP_NOZORDER );
}
if( pWVT->CaretExist && ! pWVT->CaretHidden )