Commit Graph

29 Commits

Author SHA1 Message Date
Thilo Graf
26eb4d079b Experimental try to rework isPainted() 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
44eebba080 CCDraw: simplified statement for blink init 2017-01-31 16:36:40 +01:00
Thilo Graf
f7ad79c371 CCDraw: add overloaded version of paint Blink()
It's useful to have synchronized timer for more than one item.
2016-12-17 22:39:15 +01:00
Thilo Graf
689866c872 CCDraw: reduce debug spam 2016-12-15 22:02:21 +01:00
Thilo Graf
bd5e82fdc4 CCDraw: try to avoid rendering with bad dimensions 2016-12-08 09:33:40 +01:00
Thilo Graf
717dec02c5 CCDraw: add function for blink effect for cc items
NOTE: experimental, for examples see CTestMenu class
2016-11-20 14:09:19 +01:00
Thilo Graf
78259c6ec3 CCDraw: add signals into hide() methode
alows to use slots
2016-10-24 10:31:27 +02:00
Thilo Graf
7266628207 CCDraw: add private variable col_shadow_clean
Should help to control shadow clean up in some constallations
2016-10-24 10:31:26 +02:00
Thilo Graf
3477e28cd7 CComponentsItem: fix changeing color on select switching of frames
expand select mode methodes with paremters for frame properties
This should make variables col_frame_sel and fr_thickness_sel superfluous.
2016-10-24 10:31:25 +02:00
svenhoefer
5d450c60d3 - rename SHADOW_OFFSET -> OFFSET_SHADOW 2016-10-10 14:19:55 +02:00
svenhoefer
75fe6e407d - colors: add COL_FRAME wrapper 2016-10-10 14:19:54 +02:00
svenhoefer
1f60557e0b - ccomponents: use COL_SHADOW for shadows 2016-08-16 08:37:54 +02:00
Thilo Graf
a2f96948fa CCDraw: enable/disable frame if frame on changed frame width 2016-06-26 15:32:34 +02:00
Jacek Jendrzej
9f20b27890 avoid division by zero and fix segfault 2016-05-23 14:17:25 +02:00
Thilo Graf
8250d20fa7 CCDraw: don't use clear screen for cleanup before gradient paint
Until now clean up screen was required to avoid ghost paints with
hardware acceleration. But this causes partial flicker effects,
especially when new instances are created.
So it makes more sense to hold instances and use captured
screen instead blank screen.
Optional paint cache or clean up must be enabled.
You can enable/disable clean up with:
enableGradientBgCleanUp()/disableGradientBgCleanUp()
Paint cache:
enablePaintCache()/disablePaintCache()
2016-03-22 13:15:18 +01:00
M. Liebmann
edb5407163 Fix freeze neutrino at mute icon and gradient header 2016-01-31 19:31:40 +01:00
M. Liebmann
6c72fe94bc CCDraw: Set cc_gradient_bg_cleanup to true
Except menu headers: Disable cleanup when save screen is disabled
2016-01-29 15:31:12 +01:00
Thilo Graf
be1f555e37 CCDraw: try to fix is_painted property after used kill() 2016-01-29 15:31:12 +01:00
Thilo Graf
f521e32981 CCDraw: add member to remove shadow only 2016-01-26 20:00:22 +01:00
Thilo Graf
063ccbb622 CCDraw: use ccdraw namespace 2016-01-26 09:51:48 +01:00
M. Liebmann
bf0f63467d CCDraw: Add function for cleanup gradient background 2016-01-26 09:51:48 +01:00
M. Liebmann
95f11ce7af CFrameBuffer::paintBoxRel2Buf(): Align buffer at 4 byte boundary...
...for hw blit on apollo/kronos hardware
2016-01-26 09:51:48 +01:00
Thilo Graf
b701c345fb CCDraw: remove clean up after restored screen
It seems not always useful to clean up everything after hide().
For more control in some cases an separate clean up with
clearSavedScreen() should be more flexible.
2016-01-21 10:58:21 +01:00
Thilo Graf
2ea156e933 CCDraw: remove hide() from destructor.
hide() should be called explicit if required.
This should fix unintentionally call of hide() if objects used on stack.
2016-01-05 15:06:18 +01:00
Thilo Graf
ad6940fd85 CCDraw: add parameter force_paint to member enableShadow()
TODO executed

Default behavior is not changed but parameter allows repaint shadow
in some constellations if required.
2015-12-30 13:09:36 +01:00
Thilo Graf
6952d85ae9 CCDraw: add signals into paintFbItems() 2015-12-27 14:42:32 +01:00
Thilo Graf
6339ce481d CCDraw: try to separate parameter paint_bg from shadow paint 2015-12-27 14:42:31 +01:00
Thilo Graf
0146511f38 components: rework classes
- outsourced some classes cc_item.cpp/h, cc_draw.cpp/h
- added extra methodes for simple use of some basic components extra.cpp/h
- rework clock handling: use timer class, reworked members for
  enable/disable clock with external timer events,
  tryed to fix some display issues related with infoclock and
  time osd clock in moviebrowser, channellist, menuus
- reworked hide/kill handling, removed parameter for hide(), try to use
  cached backgrounds for other constallations, paint cache, image cache (all beta)
- reworked shadow/frame handling, add shadow modes for left/right
  arrangement, TODO: repaint for existant instances required
- reworked color gradient assignment (beta)

... Note: I had a data crash in my local git tree
and i tryed to restore my historie, but most was lost. Therefore here
the commit is large
2015-12-27 14:42:27 +01:00