From 894983e28442f92c58ff77f0140831638e8dc0b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Czerpak?= Date: Fri, 12 Dec 2014 17:23:14 +0100 Subject: [PATCH] 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 --- ChangeLog.txt | 5 +++++ contrib/gtqtc/gtqtc1.cpp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 3fd9e03d41..23e8499c9e 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -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( , .T. ) to divide .ini file to lines diff --git a/contrib/gtqtc/gtqtc1.cpp b/contrib/gtqtc/gtqtc1.cpp index 1dd2ad9cc3..14e8032785 100644 --- a/contrib/gtqtc/gtqtc1.cpp +++ b/contrib/gtqtc/gtqtc1.cpp @@ -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(); }