Commit Graph

9771 Commits

Author SHA1 Message Date
Stefan Seyfried
ceb82a4b47 fb_generic: add stuff needed for compilation 2017-02-05 15:02:20 +01:00
Stefan Seyfried
3256978c58 start modularizing framebuffer acceleration architecture
This is just copied framebuffer.{h,cpp} => fb_generic.{h,cpp}
The idea is to implement CFrameBuffer as generic framebuffer class that
does work on almost every hardware without acceleration and / or
hardware dependencies.
CFbAccel will be a derived class (and different on many architectures)
which implements the accelerated functions.
This does not yet compile, verbatim copies to track development history.
2017-02-05 14:49:41 +01:00
Stefan Seyfried
9082ddf287 replace fontrenderer.h include with forward declaration
in order to flatten the build dependency tree further, include
fontrenderer.h directly where needed, in header files a forward
declaration is enough
2017-02-05 13:37:53 +01:00
Stefan Seyfried
63b6efd1f5 replace framebuffer.h include with forward declaration
instead of including framebuffer.h almost everywhere, replace it with
class CFrameBuffer forward declarations and/or generic system includes.
Add a hack to define fb_pixel_t to config.h (one reason for
framebuffer.h includes was the fb_pixel_t define)
2017-02-05 13:05:07 +01:00
Stefan Seyfried
dcd9b982ad remove unused fader.h 2017-02-05 10:20:08 +01:00
Stefan Seyfried
2cf2a3ed52 flashtool: make CFlashVersionInfo robust against invalid input 2017-02-04 12:12:27 +01:00
Stefan Seyfried
6525d1164a add --enable-fastscan configure option
The #define in src/gui/scan_setup.h did not work (undefining
ENABLE_FASTSCAN caused really strange side effects wrt background
scanning in standby mode), and all the unused code was still built.
With this configure option, people who really want this obscure feature
can enable it for their builds.
2017-02-04 12:09:47 +01:00
Stefan Seyfried
ffa3fdd6c8 framebuffer/configure: remove unused --restore-prev-mode
this is unused, untested and most likely not working at all
2017-02-04 11:35:05 +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
Stefan Seyfried
deaab224b9 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
2017-02-01 22:07:10 +01:00
Stefan Seyfried
7497722646 Merge remote-tracking branch 'tuxbox/master' 2017-02-01 22:03:40 +01:00
Stefan Seyfried
e44146bf73 framebuffer_ng: fix gradient blit
fixes https://github.com/neutrino-mp/neutrino-mp/issues/2,
thanks satbaby
2017-02-01 21:48:05 +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