2014-12-12 17:23 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* contrib/gtqtc/gtqtc1.cpp
    ! use window instead of internal image to calculate new console window
      dimensions after dynamic font size modification
This commit is contained in:
Przemysław Czerpak
2014-12-12 17:23:14 +01:00
parent a7e7b14b46
commit 894983e284
2 changed files with 7 additions and 2 deletions

View File

@@ -10,6 +10,11 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2014-12-12 17:23 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/gtqtc/gtqtc1.cpp
! use window instead of internal image to calculate new console window
dimensions after dynamic font size modification
2014-12-12 16:03 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/hbini.prg
! use hb_ATokens( <cData>, .T. ) to divide .ini file to lines

View File

@@ -2691,8 +2691,8 @@ void QTConsole::setFontSize( int iFH, int iFW )
if( ! image->isNull() &&
( pQTC->iResizeMode == HB_GTI_RESIZEMODE_ROWS ||
( pQTC->qWnd->windowState() & ( Qt::WindowMaximized | Qt::WindowFullScreen ) ) != 0 ) )
hb_gt_qtc_setWindowSize( pQTC, image->height() / pQTC->cellY,
image->width() / pQTC->cellX );
hb_gt_qtc_setWindowSize( pQTC, pQTC->qWnd->height() / pQTC->cellY,
pQTC->qWnd->width() / pQTC->cellX );
}
setImageSize();
}