Commit Graph

17 Commits

Author SHA1 Message Date
Stefan Seyfried
20f20c8511 spark: fix transparent icon blitting
no, the CFrameBuffer::blit2FB() API is *not* intuitive
(transp == true means: no transparency...)
2012-04-17 19:33:59 +02:00
Stefan Seyfried
be106b8f63 spark: fix icon blitting (again :-) 2012-04-17 19:33:58 +02:00
Stefan Seyfried
ca873b609f spark: use blitter to scale to non-720p framebuffer resolutions
Let everyone render in an offscreen buffer of 1280x720 pixels,
then blit to primary, scaling to target resolution.

This will need some calls to ->blit() sprinkled all over neutrino
which will come in a follow-up commit.
2012-04-17 19:33:57 +02:00
Stefan Seyfried
7fcd36ed66 spark: revert framebuffer scaling commits
we're going to use the STFB blitter instead of manually
scaling everything if the videomode is not 720p, so more
or less revert all commits regarding FB scaling:

Revert "fontrenderer: scale fonts for nonstandard FB resolutions"
Revert "neutrino: resize framebuffer on videomode change"
Revert "fontrenderer: fix issue with epgwindow font when FB is scaling"
Revert "neutrino: fix artefacts with scaling framebuffer and 1080i"
Revert "spark: draw lines 2px wide instead of 1 in full-HD mode"
Revert "spark: do not scale framebuffer for PAL mode"
Revert "spark: fix framebuffer glitches"
Revert "spark: do not sync blitter after every rectangle (improves performance)"
2012-04-17 19:33:57 +02:00
Stefan Seyfried
63178c1e2a neutrino: more variable init fixes 2012-04-17 19:33:57 +02:00
Stefan Seyfried
3189f7fdc4 misc variable init fixes 2012-04-17 19:33:56 +02:00
Stefan Seyfried
47f09004d8 framebuffer: make blit2FB usable for tuxtxt 2012-04-17 19:33:55 +02:00
Stefan Seyfried
62d546f7c5 spark: do not sync blitter after every rectangle (improves performance) 2012-04-17 19:33:55 +02:00
Stefan Seyfried
ef03e351ab spark: fix framebuffer glitches
* explicitly flush the blitter after every operation
* msync() only the needed range for blitting
This fixes e.g. 2x green button in osd range setup
2012-04-17 19:33:55 +02:00
Stefan Seyfried
448131d0e9 spark: do not scale framebuffer for PAL mode
Downscaling potentially looks bad and leads to ugly artifacts.
So for PAL mode, do not scale at all, just use the old-fashioned
big font look of dbox2 or tripledragon.
Only scale for modes bigger than 720p.
2012-04-17 19:33:54 +02:00
Stefan Seyfried
8a127f08c2 spark: draw lines 2px wide instead of 1 in full-HD mode 2012-04-17 19:33:54 +02:00
Stefan Seyfried
1182430ac3 neutrino: fix artefacts with scaling framebuffer and 1080i 2012-04-17 19:33:54 +02:00
Stefan Seyfried
0574f15c49 neutrino: adapt framebuffer_spark to recent changes 2012-04-17 19:33:54 +02:00
Stefan Seyfried
b34e7205b9 neutrino: resize framebuffer on videomode change
this is needed on spark because the framebuffer has the same resolution
as the video plane...
2012-04-17 19:33:53 +02:00
Stefan Seyfried
a96dca1547 framebuffer_spark: fix glitch with non-rounded corners 2012-04-17 19:33:53 +02:00
Stefan Seyfried
1b12cda250 spark: fix framebuffer paintLine() functions 2012-04-17 19:33:53 +02:00
Stefan Seyfried
3eb307d296 add a CFrameBuffer implementation for SPARK
instead of clobbering up the code with lots of #ifdefs, create a
separate file for SPARK
2012-04-17 19:33:53 +02:00