aboutsummaryrefslogtreecommitdiffstats
path: root/psplash-fb.c
AgeCommit message (Collapse)Author
2020-01-21Double buffering supportAndrei Gherzan
'psplash' uses only one buffer which can cause tearing artifacts. This change uses the FBIOPAN_DISPLAY ioctl as a way to handle page flipping and also does that after a vsync interrupt to remove any tearing issues. Signed-off-by: Andrei Gherzan <agherzan@hanoverdisplays.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-01-21Add SPDX License information to files, drop boilerplateRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-09-02Fix text width calculation.Kevin Corry
Psplash: Fix text width calculation. Using the "psplash-write MSG <message_text>" command, you can display messages when the splash screen is running. As part of this, psplash needs to calculate the height and width of the box to render on the screen to hold the text (which will appear on top of the background image), which it does in the psplash_fb_text_size() function in psplash-fb.c. If the message contains multiple lines (i.e. it contains one or more newline characters), then it looks like the intention is for psplash to use the length of the longest single line as the width of this text box. However, there's a bug in this calculation that leads to some multi-line messages being rendered off the left edge of the screen, instead of properly centered. To fix this, each time a newline is encountered, if the width of the current line (w) is greater than the maximum line width (mw), update the maximum width. Also, reset the current line width to zero so we can correctly calculate the width of the next line. Signed-off-by: Kevin Corry <kevin@corry.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-06-05Add --fbdev option to psplash like --rotation.Julien Gueytat
A new fbdev file is needed and should be overrided if needed. The number contained in fbdev will be used as X in /dev/fbX. By overriding fbdev you can have a splash screen on another framebuffer than /dev/fbO. The getenv(FBDEV) line has been replaced by this option since the environment variables are not read yet when psplash starts. Signed-off-by: Julien Gueytat <contact@jgueytat.fr> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-14psplash-fb: remove unused parameter from psplash_fb_text_sizeRichard Leitner
This fixes following unused-parameter warning: psplash-fb.c: In function 'psplash_fb_text_size': psplash-fb.c:464:43: warning: unused parameter 'fb' [-Wunused-parameter] Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-14psplash-fb: fix sign-compare warningRichard Leitner
Cast font->index[i] to wchar_t for the comparison. This fixes following sign-compare warning: psplash-fb.c: In function 'psplash_font_glyph': psplash-fb.c:452:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2015-11-24psplash-fb: Convert psplash_fb_plot_pixel() to a static inlineKhem Raj
This function is not used outside psplash-fb.c and by making it static inline we keep the performance and also make it portable across multiple compilers and gcc versions Signed-off-by: Khem Raj <raj.khem@gmail.com>
2015-11-24psplash-fb.c: Fix some endian issuesJuro Bystricky
The routine psplash_fb_plot_pixel implicitly assumed little endian format when plotting pixels in RGB888 or BGR888 modes. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2015-11-24psplash-fb.c: Fix BGR888 detectionJuro Bystricky
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2014-10-31Images: handle rowstride != width*bytes_per_pixelOlaf Mandel
Up till now, image data with a rowstride larger than the value expected from width and bytes_per_pixel caused a trapezoid distortion of the displayed image. Signed-off-by: Olaf Mandel <o.mandel@menlosystems.com>
2009-05-28psplash: Fix so the code honours whatever bit order the display reports with ↵Richard Purdie
fast paths for the most common cases.
2009-05-25psplash: really fix R&B bit swappingRichard Purdie
2009-05-19psplash: Fix image byte order, add master copy of underlying logo imageRichard Purdie
2009-05-19* psplash-fb.c:Richard Purdie
* psplash-poky-img.h: * psplash.c * Makefile.am: Fix colour read order from RLE images (R & B swapped) Add handling for alpha channel in images Update the Poky RLE image Change the OpenedHand logo for the Poky one
2008-05-272008-05-27 Robert Bragg <bob@o-hand.com>Robert Bragg
* psplash-fb.c: Added support for attempting to configure a 32/16bpp fbdev pixel format, if the default (e.g. 8bpp) is not supported.
2006-12-222006-12-22 Matthew Allum <mallum@openedhand.com>Matthew Allum
* psplash-fb.c: * psplash.c: More rotation tweaks
2006-12-222006-12-22 Matthew Allum <mallum@openedhand.com>Matthew Allum
* psplash-fb.c: * psplash-fb.h: * psplash.c: Add -angle cmd line arg, hopefully fix rotation
2006-12-192006-12-19 Matthew Allum <mallum@openedhand.com>Matthew Allum
* psplash-fb.c: * psplash-fb.h: * psplash.c: Add some as yet tested basic rotation code. * psplash.h: Disable DBG output by default.
2006-09-082006-09-08 Matthew Allum <mallum@openedhand.com>Matthew Allum
* Makefile.am: * radeon-font.h: Add 'compiled' font. * psplash-fb.c: * psplash-fb.h: * psplash.c: * psplash.h: Add basic font/text rendering support Add remote msg suuport (psplash-write 'MSG hello world') Add cmd line switch to disable console switch Move console switch after fifo set up.
2006-09-06Added initial psplash sourcesMatthew Allum