diff --git a/ChangeLog.txt b/ChangeLog.txt index 08db297e80..19fe10bf36 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,12 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2014-10-14 14:05 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * src/rtl/gtxwc/gtxwc.c + ! fixed size of picture shown by HB_GTI_DISPIMAGE + ! fixed indexes used to restore text data after + hb_gtInfo( HB_GTI_DISPIMAGE, "" ) + 2014-10-13 18:53 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/rtl/gtxwc/gtxwc.c ! fixed recent modification (force character redrawing) diff --git a/src/rtl/gtxwc/gtxwc.c b/src/rtl/gtxwc/gtxwc.c index 2b7ef460b1..9643f55144 100644 --- a/src/rtl/gtxwc/gtxwc.c +++ b/src/rtl/gtxwc/gtxwc.c @@ -3897,7 +3897,7 @@ static void hb_gt_xwc_InvalidateFull( PXWND_DEF wnd, for( row = top; row <= bottom; row++ ) { scridx = row * wnd->cols + left; - for( col = left; col < right; col++, scridx++ ) + for( col = left; col <= right; col++, scridx++ ) wnd->pCurrScr[ scridx ] = 0xFFFFFFFF; } @@ -5629,13 +5629,13 @@ static HB_BOOL hb_gt_xwc_Info( PHB_GT pGT, int iType, PHB_GT_INFO pInfo ) rx.left = rx.top = 0; if( xImage ) { - rx.right = xImage->width; - rx.bottom = xImage->height; + rx.right = xImage->width - 1; + rx.bottom = xImage->height - 1; } else { - rx.right = wnd->width; - rx.bottom = wnd->height; + rx.right = wnd->width - 1; + rx.bottom = wnd->height - 1; } /* fetch & validate area for displaying */ @@ -5668,10 +5668,10 @@ static HB_BOOL hb_gt_xwc_Info( PHB_GT pGT, int iType, PHB_GT_INFO pInfo ) } } - if( rx.right > wnd->width ) - rx.right = wnd->width; - if( rx.bottom > wnd->height ) - rx.bottom = wnd->height; + if( rx.right >= wnd->width ) + rx.right = wnd->width - 1; + if( rx.bottom >= wnd->height ) + rx.bottom = wnd->height - 1; if( rx.left >= 0 && rx.top >= 0 && rx.left <= rx.right && rx.top <= rx.bottom ) @@ -5688,8 +5688,8 @@ static HB_BOOL hb_gt_xwc_Info( PHB_GT pGT, int iType, PHB_GT_INFO pInfo ) else hb_gt_xwc_InvalidateFull( wnd, rx.left / wnd->fontWidth, rx.top / wnd->fontHeight, - ( rx.right + wnd->fontWidth - 1 ) / wnd->fontWidth, - ( rx.bottom + wnd->fontHeight - 1 ) / wnd->fontHeight ); + rx.right / wnd->fontWidth, + rx.bottom / wnd->fontHeight ); if( HB_GTSELF_DISPCOUNT( pGT ) == 0 ) hb_gt_xwc_RealRefresh( wnd, HB_FALSE ); }