From 3e87fe05d2faaf32923b2546ba403aaa221fa5fb Mon Sep 17 00:00:00 2001 From: Mindaugas Kavaliauskas Date: Tue, 15 Oct 2013 18:58:26 +0300 Subject: [PATCH] 2013-10-15 18:58 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) * contrib/gtwvg/gtwvgd.c ! fixed broken compile after 2013-10-11 21:36 UTC-0800 Pritpal Bedi --- ChangeLog.txt | 7 ++++++- contrib/gtwvg/gtwvgd.c | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 30c04751c4..80a9fe99bd 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,5 +1,5 @@ /* - * $Id: bb9c7663f30fb4d1a34eefca196d43d0d30212d8 $ + * $Id$ */ /* Read doc/howtorep.txt and use this format for entry headers: @@ -10,6 +10,11 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ + +2013-10-15 18:58 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) + * contrib/gtwvg/gtwvgd.c + ! fixed broken compile after 2013-10-11 21:36 UTC-0800 Pritpal Bedi + 2013-10-11 21:36 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/gtwvg/crt.prg + Added: Method RefreshEx() which refreshes the CRT window directly via diff --git a/contrib/gtwvg/gtwvgd.c b/contrib/gtwvg/gtwvgd.c index e5ed8dccb2..b48340d857 100644 --- a/contrib/gtwvg/gtwvgd.c +++ b/contrib/gtwvg/gtwvgd.c @@ -3128,10 +3128,10 @@ static HB_BOOL hb_gt_wvt_Info( PHB_GT pGT, int iType, PHB_GT_INFO pInfo ) iVal = hb_itemGetNI( pInfo->pNewVal ); if( iVal > 0 && ! pWVT->bMaximized && ! pWVT->bFullScreen && pWVT->hWnd ) /* Don't allow if Maximized or FullScreen */ { + RECT ci; HB_GTSELF_SETMODE( pGT, ( iVal / pWVT->PTEXTSIZE.y ), pWVT->COLS ); /* Now conforms to pWVT->ResizeMode setting, resize by FONT or ROWS as applicable [HVB] */ - RECT ci; GetClientRect( pWVT->hWnd, &ci ); if( ci.bottom != iVal ) { @@ -3149,10 +3149,10 @@ static HB_BOOL hb_gt_wvt_Info( PHB_GT pGT, int iType, PHB_GT_INFO pInfo ) iVal = hb_itemGetNI( pInfo->pNewVal ); if( iVal > 0 && ! pWVT->bMaximized && ! pWVT->bFullScreen && pWVT->hWnd ) /* Don't allow if Maximized or FullScreen */ { + RECT ci; HB_GTSELF_SETMODE( pGT, ( iVal / pWVT->PTEXTSIZE.y ), pWVT->COLS ); /* Now conforms to pWVT->ResizeMode setting, resize by FONT or ROWS as applicable [HVB] */ - RECT ci; GetClientRect( pWVT->hWnd, &ci ); if( ci.right != iVal ) {