Commit Graph

8786 Commits

Author SHA1 Message Date
M. Liebmann
7d5cbea37d movieplayer: Fix display filetime 2017-02-05 20:04:33 +01:00
M. Liebmann
dccb6ba8f2 configure.ac: Fix freetype check 2017-02-04 10:55:34 +01:00
Stefan Seyfried
2ca807e34a configure.ac: use pkg-config to check freetype version
the PKG_CHECK_MODULES macro allows to check for a version -- use it
instead of homegrown TUXBOX_APPS_LIB_PKGCONFIG

Signed-off-by: M. Liebmann <git@tuxcode.de>
2017-02-02 14:34:34 +01:00
Thilo Graf
1c217b404f Forms/header/clock: implement slot into OnBeforeRePaint 2017-02-02 11:18:27 +01:00
Thilo Graf
be8588a4a5 CComponentsSignals: add signal OnBeforeRePaint 2017-02-02 11:18:27 +01:00
Thilo Graf
a2f9d4b462 Revert "CMenuWidget: ensure repaint of all header content if it is already painted"
This reverts commit 97ed7cdaf7.
2017-02-02 11:18:27 +01:00
Thilo Graf
296aa5b901 Revert "CChannelList: ensure repaint of new header content"
This reverts commit ea700ddf52.
2017-02-02 11:18:27 +01:00
Jacek Jendrzej
4fcea5bfd5 try to fix loop rezap with lua script 2017-02-01 20:38:04 +01:00
Thilo Graf
b8dabf2bf9 Messages: add timeout parameter for error and info messages
I'm not sure if it is a good idea to set a global timeout for
all error messages. This should be decided for respective cases.
Timeout for info messages should not be a problem.
The default timeout is set here as global.
2017-02-01 11:34:00 +01:00
Thilo Graf
721f85deba CRecordManager: revert warn message for stream overflow
It's an error not a warning!
2017-02-01 09:36:28 +01:00
Thilo Graf
3387bcf2c4 CRecordManager: remove static error messages
Static message window expects user interaction but in this case user
could be absent. and recordings could be running out of control.
These messages are only warnings and "to slow" warning is optional.
To avoid uncontrolled behavior of recordings, it should be enough to use messages with simple timeout.
2017-02-01 09:10:06 +01:00
M. Liebmann
a9d6133765 configure.ac: bump revision to 3.4.1 2017.1 3.04.01 2017-01-31 17:15:17 +01:00
Thilo Graf
97ed7cdaf7 CMenuWidget: ensure repaint of all header content if it is already painted
TODO: 	This should be controlled inside header base class.
	paint() method seems suitable.
	I Will try to implement it soon.
2017-01-31 16:36:43 +01:00
Thilo Graf
008be59b08 CVolume: replace repaintVolScale() with paint()
paint() contains repaintVolScale()
2017-01-31 16:36:43 +01:00
Thilo Graf
58c65b1a7e CVolumeBar: add missing paint() methode, avoid multiple iitem instances 2017-01-31 16:36:43 +01:00
Thilo Graf
7de2fbe881 CVolumeBar: use OFFSET_INNER_SMALL instead static value for item offset 2017-01-31 16:36:42 +01:00
Thilo Graf
3f0b81f0a7 CVolumeBar: use CORNER_RADIUS_MID
cornerRad() is not really the best solution.
Inner items are fit with full height and should use the same value.
2017-01-31 16:36:42 +01:00
Thilo Graf
4d2dd415c1 CVolumeBar: don't use digit height
height is wrong and calculations for digit positions could be confused
2017-01-31 16:36:42 +01:00
Thilo Graf
76008371ff CMenuWidget: add missing hide() for details line
Details_line was not removed in all constellations when menu was closed.
Sample: open main menue and select an entry with connect-line, eg. plugins,
press key to come into submenu, then go back to main menue and close
menu with home key, result: it's possible that line is still on screen.
2017-01-31 16:36:42 +01:00
Thilo Graf
53f956c0f9 CComponentsText: add signal OnBeforePaint into text paint() methode 2017-01-31 16:36:42 +01:00
Thilo Graf
f219da23bf CComponentsText: add missing parameters to kill() methode 2017-01-31 16:36:42 +01:00
M. Liebmann
e74f24a658 CVolumeBar: Enable background paint for digits 2017-01-31 16:36:42 +01:00
M. Liebmann
86c3b08533 configure.ac: Check freetype version >= 2.5.0 2017-01-31 16:36:42 +01:00
M. Liebmann
a7ef709e55 CInfoViewer: Use flag Font::FULLBG for RenderString()
dependent on g_settings.theme.infobar_gradient_*
2017-01-31 16:36:42 +01:00
Thilo Graf
ea700ddf52 CChannelList: ensure repaint of new header content 2017-01-31 16:36:42 +01:00
Thilo Graf
ba9284fba7 CComponentsHeader: add missing paramters to kill methode 2017-01-31 16:36:42 +01:00
Thilo Graf
17a84f0e75 CEventList: fix current channel position and ensure clean up header
Current channel name was out of center and a clean up of header
background was required because texts are only painted with transparent background and old texts are futher visible.
Now we have a clean background before repaint logo or new channel names.
2017-01-31 16:36:42 +01:00
Thilo Graf
31146bd9af CComponentsForm: remove debug spam 2017-01-31 16:36:42 +01:00
Thilo Graf
5d1bcbd33f CImageInfo: prevent possible overpainting while switching of sub text caption 2017-01-31 16:36:42 +01:00
Thilo Graf
0de9490326 CInfoViewer: enable kill text items after killed title
This causes repaint text on next view of infobar.
2017-01-31 16:36:42 +01:00
Thilo Graf
4c71edbd3c CComponentsText: add explicit kill methode and add ct_force_text_paint
After hide or kill text will does not paint without ct_force_text_paint,
so it is required to add this.
2017-01-31 16:36:42 +01:00
Thilo Graf
cbeecab801 CComponentsExtTextForm: init with gradient support and sl_repaint slot 2017-01-31 16:36:41 +01:00
Thilo Graf
5c8aa90e01 CComponentsForm: add some usefull slots/signal to help paint backgrounds
Requried to paint form items only on changed contents and on repaint
2017-01-31 16:36:41 +01:00
Thilo Graf
384e98c089 CCDraw: add new attribut force_paint_bg
should help for some repaint actions
2017-01-31 16:36:41 +01:00
Thilo Graf
8bd4633cb4 CComponentsText: fix order of paint init 2017-01-31 16:36:41 +01:00
Thilo Graf
b2f1226324 CTestMenu: fix icon container
was not removed from screen
2017-01-31 16:36:41 +01:00
Thilo Graf
26eb4d079b Experimental try to rework isPainted() 2017-01-31 16:36:41 +01:00
Thilo Graf
2f24e98252 CTextBox: fix m_old_cText update after text paint
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.
2017-01-31 16:36:41 +01:00
Thilo Graf
81f26a327d CComponentsFrmClock: add slot to handle enforced repaint of segments
If clock removed from screen and instance is not destroyed, then we must
ensure repaint of segments after painted background.

This is required if segments are only will paint if
their content was changed and attribut ct_force_text_paint = false.
2017-01-31 16:36:41 +01:00
Thilo Graf
0eb8c7b173 CCDraw: add signal OnAfterPaintBg 2017-01-31 16:36:41 +01:00
Thilo Graf
1120e3a37d CTextBox: rework return control of value of setText() function
value was not clearly, hope i'ts now
2017-01-31 16:36:41 +01:00
Thilo Graf
d31deac545 CTextBox: add attribut 'm_bg_painted'
Shoul help in together with changed text content
to control required text render.
2017-01-31 16:36:41 +01:00
Thilo Graf
ae903ddb2f CTextBox: remove text reinit from reInitToCompareVar()
Will be already done after each text render.
2017-01-31 16:36:41 +01:00
Thilo Graf
9b69803ca4 CTextBox: paint bg always if pixbuffer exists
Should prevent unintended possible overlap on multiple font render.
2017-01-31 16:36:41 +01:00
M. Liebmann
6803a8dff3 Remove obsolete 'contrast_fonts' code from osd menu 2017-01-31 16:36:40 +01:00
M. Liebmann
c62f964dde screensaver: Use black background for the clock 2017-01-31 16:36:40 +01:00
M. Liebmann
97d1d93c93 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
2017-01-31 16:36:40 +01:00
Thilo Graf
4a288240f2 CTestMenu: fix blink of extended text sample 2017-01-31 16:36:40 +01:00
Thilo Graf
9df86b6c37 CBuildInfo: move InitInfoItems() into exec()
ensures paint of data on each repaint.
2017-01-31 16:36:40 +01:00
Thilo Graf
44eebba080 CCDraw: simplified statement for blink init 2017-01-31 16:36:40 +01:00