Condition of changed postion and unchanged text was not considered.
Origin commit data
------------------
Commit: fa6f42b53a
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-11-21 (Wed, 21 Nov 2018)
Use refreshTextLineArray() for calculation of lines.
Note: count of lines will be only returned if CTextBox object
is initialized with a valid CBox instance,
otherwise count of 0 lines will be returned!
also remove inline declaration, not needed here
Origin commit data
------------------
Commit: ec83549e50
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-06-15 (Thu, 15 Jun 2017)
... outside of CComponentsScrollBar(). Since the color-changes in
9c8c262 the non-CC scrollbars looks weird.
Origin commit data
------------------
Commit: fe5f84c1d0
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-04-24 (Mon, 24 Apr 2017)
Origin message was:
------------------
- scrollbars: avoid usage of COL_SCROLLBAR_PASSIVE_PLUS_0 ...
... outside of CComponentsScrollBar(). Since the color-changes in
9c8c262 the non-CC scrollbars looks weird.
in order to flatten the build dependency tree further, include
fontrenderer.h directly where needed, in header files a forward
declaration is enough
Origin commit data
------------------
Commit: 2303d94300
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-05 (Sun, 05 Feb 2017)
refreshText() executes loop also for text with more than one line
and m_old_cText attribut should be updated only if loop is ready. Otherwise
in text boxes with more than one line, only first line would be painted.
Origin commit data
------------------
Commit: 2f24e98252
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-24 (Tue, 24 Jan 2017)
value was not clearly, hope i'ts now
Origin commit data
------------------
Commit: 1120e3a37d
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-17 (Tue, 17 Jan 2017)
Shoul help in together with changed text content
to control required text render.
Origin commit data
------------------
Commit: d31deac545
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-24 (Tue, 24 Jan 2017)
Will be already done after each text render.
Origin commit data
------------------
Commit: ae903ddb2f
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-16 (Mon, 16 Jan 2017)
Should prevent unintended possible overlap on multiple font render.
Origin commit data
------------------
Commit: 9b69803ca4
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-10 (Tue, 10 Jan 2017)
- For the correct use of the changes should be built freetype
with the following settings:
#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
#define TT_CONFIG_OPTION_SUBPIXEL_HINTING
BS-Patch for freetype 2.5-2.7
-----------------------------
** include/freetype/config/ftoption.h **
-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
+#define TT_CONFIG_OPTION_SUBPIXEL_HINTING
BS-Patch for freetype 2.7.1
---------------------------
** include/freetype/config/ftoption.h **
-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
Origin commit data
------------------
Commit: 97d1d93c93
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-01-24 (Tue, 24 Jan 2017)
Origin message was:
------------------
fontrenderer: Rework rendering for better font presentation
- For the correct use of the changes should be built freetype
with the following settings:
#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
#define TT_CONFIG_OPTION_SUBPIXEL_HINTING
BS-Patch for freetype 2.5-2.7
-----------------------------
** include/freetype/config/ftoption.h **
-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
+#define TT_CONFIG_OPTION_SUBPIXEL_HINTING
BS-Patch for freetype 2.7.1
---------------------------
** include/freetype/config/ftoption.h **
-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
If more text is added to a textbox than fits into the window, the last
lines are stripped. In BOTTOM (and non-SCROLL) mode, it makes more sense
to strip the first lines. This is used by shellwindow, e.g. in package
management menu.
Origin commit data
------------------
Commit: b623aad5c3
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-01-29 (Sun, 29 Jan 2017)
If found no linebreak, return value could be too small.
Space char simulates a line termination as a workaround to get
largest possible width.
Origin commit data
------------------
Commit: cddf1835b5
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-09 (Fri, 09 Dec 2016)
CORNER_ALL is not the same like CORNER_NONE.
Could cause problems in the evaluation.
Origin commit data
------------------
Commit: 8142ed47cc
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-27 (Sun, 27 Nov 2016)
supplement to: - textbox: fix box width in round corners mode
Radius was always subtracted in all text modes.
TODO: value of m_nBgRadius itself is not considered at the moment.
Origin commit data
------------------
Commit: 7031dc1da4
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-21 (Mon, 21 Nov 2016)
This could be useful eg. for size calculations.
Origin commit data
------------------
Commit: 91c7588aa6
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-10 (Thu, 10 Nov 2016)
I'm missing a function that returns current line count outside
of a CTextBox object. This could be useful eg. for size calculations
before object init etc
Origin commit data
------------------
Commit: ac8d05f5e1
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-09 (Wed, 09 Nov 2016)
error: declaration of ‘clear’ shadows a member of 'this'
Origin commit data
------------------
Commit: 0f5aa73033
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-11-02 (Wed, 02 Nov 2016)
Origin message was:
------------------
- textbox: fix compilation for generic hardware
error: declaration of ‘clear’ shadows a member of 'this'
and add VISUAL_DEBUG define. That paints beautiful colored boxes
to see what's going on.
Origin commit data
------------------
Commit: c074f1365f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-13 (Thu, 13 Oct 2016)
Origin message was:
------------------
- textbox: fix text position in mode CENTER and mode RIGHT; ...
and add VISUAL_DEBUG define. That paints beautiful colored boxes
to see what's going on.
Check of text change is not enough. Scrollboxes could have some problems.
Dimension changes must be considered too and this is to much effort at
the moment. Use of OnAfterScrollPage is much easier.
this reverts: 47b4ea481c
Origin commit data
------------------
Commit: 8afe4495e7
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-18 (Thu, 18 Feb 2016)
Avoids possible usage of wrong color after init.
Origin commit data
------------------
Commit: 4d1780486d
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-02 (Tue, 02 Feb 2016)
Screen save now always disabled by default and can be controlled
outside of relevant objects.
Origin commit data
------------------
Commit: 9d72b086a2
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-21 (Thu, 21 Jan 2016)
- split hasChanged() into hasChangedPos(), hasChangedDim()
- add return value bool to enableBackgroundPaint(), enableSaveScreen()
- add clearScreenBuffer(), for unified usage in destructor and functions
- add OnAfterRefresh() as a signal/slot handler, this allows to use
external methodes as callbacks after painted text
Origin commit data
------------------
Commit: a2171dad4a
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-11-18 (Wed, 18 Nov 2015)
Origin message was:
------------------
CTextBox: add/modify methodes for screen handlings
- split hasChanged() into hasChangedPos(), hasChangedDim()
- add return value bool to enableBackgroundPaint(), enableSaveScreen()
- add clearScreenBuffer(), for unified usage in destructor and functions
- add OnAfterRefresh() as a signal/slot handler, this allows to use
external methodes as callbacks after painted text