2013-04-30 08:56 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbct/ctwin.c
! added protection against GPF when reverted coordinates are used
in WOPEN()
This commit is contained in:
@@ -10,6 +10,11 @@
|
||||
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
|
||||
*/
|
||||
|
||||
2013-04-30 08:56 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
||||
* contrib/hbct/ctwin.c
|
||||
! added protection against GPF when reverted coordinates are used
|
||||
in WOPEN()
|
||||
|
||||
2013-04-30 02:53 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
||||
* contrib/gtqtc/gtqtc1.cpp
|
||||
! reverted HB_GTI_DISPIMAGE cords
|
||||
|
||||
@@ -2474,13 +2474,17 @@ int hb_ctwSetBorderMode( int iTop, int iLeft, int iBottom, int iRight )
|
||||
int hb_ctwCreateWindow( int iTop, int iLeft, int iBottom, int iRight, HB_BOOL fClear, int iColor, HB_BOOL fVisible )
|
||||
{
|
||||
int iResult = -1;
|
||||
PHB_GTCTW pCTW = hb_ctw_base();
|
||||
|
||||
if( pCTW )
|
||||
if( iTop <= iBottom && iLeft <= iRight )
|
||||
{
|
||||
iResult = hb_ctw_CreateWindow( pCTW, iTop, iLeft, iBottom, iRight, fClear, iColor, fVisible );
|
||||
HB_GTSELF_FLUSH( pCTW->pGT );
|
||||
hb_gt_BaseFree( pCTW->pGT );
|
||||
PHB_GTCTW pCTW = hb_ctw_base();
|
||||
|
||||
if( pCTW )
|
||||
{
|
||||
iResult = hb_ctw_CreateWindow( pCTW, iTop, iLeft, iBottom, iRight, fClear, iColor, fVisible );
|
||||
HB_GTSELF_FLUSH( pCTW->pGT );
|
||||
hb_gt_BaseFree( pCTW->pGT );
|
||||
}
|
||||
}
|
||||
return iResult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user