aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-09-02Fix text width calculation.HEADmasterKevin Corry1-1/+2
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 Gueytat4-29/+41
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-06-05Fix indendation.Julien Gueytat1-4/+4
Signed-off-by: Julien Gueytat <contact@jgueytat.fr> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-14psplash: fix remaining unused-parameter warningsRichard Leitner3-2/+8
Define UNUSED macro for GCC's ((__unused__)) attribute and use it for the remaining unused-parameter warnings. These unused parameters are required due to the definition of the sighandler_t. This fixes following unused-parameter warnings: psplash.c: In function 'psplash_exit': psplash.c:36:19: warning: unused parameter 'signum' [-Wunused-parameter] psplash-console.c: In function 'vt_request': psplash-console.c:27:17: warning: unused parameter 'sig' [-Wunused-parameter] Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-14psplash: remove unused parameter length from parse_commandRichard Leitner1-3/+3
This fixes following unused-parameter warning: psplash.c: In function 'parse_command': psplash.c:105:49: warning: unused parameter 'length' [-Wunused-parameter] Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-14psplash-fb: remove unused parameter from psplash_fb_text_sizeRichard Leitner3-5/+3
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 Leitner1-1/+1
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>
2016-04-14configure: add -Wextra GCC flagRichard Leitner1-1/+1
Enable extra warnings when using GCC. Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-13README: add "Contributing" guidelineRichard Leitner1-0/+18
The "Contributing" guideline section should help people sending their patches correctly. A similar section is available in nearly all layers/repositories hosted on yoctoproject.org. Therefore add it also the the psplash repository. Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-13add initial .gitignoreRichard Leitner1-0/+20
This initial version of .gitignore contains all files created during a build. Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-04-13AUTHORS: add list of git commit authorsRichard Leitner1-0/+13
Added an initial AUTHORS list in alphabetical order, created with following commandline: git log --format='%aN <%aE>' | sort -u Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2015-11-24psplash: remove unused variableRoss Burton1-3/+0
2015-11-24Add GPLv2+ copyright fileRoss Burton1-0/+339
2015-11-24autogen: remove, autoreconf exists nowRoss Burton1-3/+0
2015-11-24configure: remove AM_MAINTAINER_MODERoss Burton1-1/+0
2015-11-24psplash-fb: Convert psplash_fb_plot_pixel() to a static inlineKhem Raj2-9/+1
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 Bystricky1-4/+25
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 Bystricky1-1/+1
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2014-10-31Make appearance more configurableOlaf Mandel5-9/+65
* Allow not showing the startup message * Make the screen-split (between image and progress bar) configurable * Allow for fullscreen image (overlaid by progress bar) Signed-off-by: Olaf Mandel <o.mandel@menlosystems.com>
2014-10-31Images: handle rowstride != width*bytes_per_pixelOlaf Mandel4-6/+17
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>
2012-08-14make-image-header: set -e so that errors are noticedRoss Burton1-0/+3
2012-07-10Fix for psplash segmentation faultAws Ismail1-1/+1
Fix segmentation fault when passing -a without angel value. When psplash -a is called instead of psplash -a<angle value> it will segmentation fault calling out of bound argv[]. git://git.yoctoproject.org/psplash Signed-of-by: Aws Ismail<aws.ismail@windriver.com> -----------------------------------------------------------------
2012-05-10Make it easier to customise coloursTomas Frydrych4-7/+44
This commit moves colour definitions to psplash-colors.h so that the colour scheme can be easily modified by replacing this file rather than having to maintain a patch. Signed-off-by: Tomas Frydrych <tomas@sleepfive.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-07-13psplash: Apply logo centering patch from Paul SokolovskyRichard Purdie1-2/+2
2009-05-28psplash: Fix so the code honours whatever bit order the display reports with ↵Richard Purdie4-22/+116
fast paths for the most common cases.
2009-05-25psplash: really fix R&B bit swappingRichard Purdie1-2/+2
2009-05-19psplash: Fix image byte order, add master copy of underlying logo imageRichard Purdie3-4/+4
2009-05-19* psplash-fb.c:Richard Purdie5-528/+1039
* 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-11-10psplash: Fix Changelog's last entry date.Samuel Ortiz1-1/+1
2008-11-10psplash: Update Changelog.Samuel Ortiz1-0/+6
2008-11-10psplash: unlink the FIFO and switch the console back when no fb is foundSamuel Ortiz1-6/+10
2008-08-12psplash: Unlink the FIFO when exittingRichard Purdie2-0/+7
2008-08-12psplash: Allow newline terminated commands as well as null terminated ones ↵Richard Purdie2-0/+15
through the fifo.
2008-05-272008-05-27 Robert Bragg <bob@o-hand.com>Robert Bragg2-42/+130
* psplash-fb.c: Added support for attempting to configure a 32/16bpp fbdev pixel format, if the default (e.g. 8bpp) is not supported.
2008-02-212008-02-21 Rob Bradford <rob@openedhand.com>Rob Bradford2-7/+12
* psplash.c: (main): Revert artwork. Needs more love.
2008-02-212008-02-21 Rob Bradford <rob@openedhand.com>Rob Bradford3-7/+536
* psplash-poky-img.h: * psplash.c: (main): Try new artwork.
2007-03-28psplash: Draw the progress bar more optimallyRichard Purdie1-4/+6
2007-03-28psplash: Add support for negative progress valuesRichard Purdie2-7/+24
2007-02-162007-02-16 Matthew Allum <mallum@openedhand.com>Matthew Allum4-6/+25
* README: * configure.ac: * psplash.doap: Update for 0.1 release
2006-12-222006-12-22 Matthew Allum <mallum@openedhand.com>Matthew Allum3-4/+10
* psplash-fb.c: * psplash.c: More rotation tweaks
2006-12-222006-12-22 Matthew Allum <mallum@openedhand.com>Matthew Allum2-2/+9
* psplash.c: Whoops, actually set the angle config option
2006-12-222006-12-22 Matthew Allum <mallum@openedhand.com>Matthew Allum4-11/+32
* 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 Allum5-10/+46
* psplash-fb.c: * psplash-fb.h: * psplash.c: Add some as yet tested basic rotation code. * psplash.h: Disable DBG output by default.
2006-11-21 * psplash-write.c:Richard Purdie2-1/+8
Disable error message when the fifo doesn't exist.
2006-11-212006-11-21 Matthew Allum <mallum@openedhand.com>Matthew Allum3-0/+55
* psplash.c: (main): Add some more commenting * psplash.doap: Add DOAP file.
2006-09-282006-09-28 Matthew Allum <mallum@openedhand.com>Matthew Allum3-35/+37
* psplash-bar-img.h: pixel pop a little * psplash.c: (psplash_draw_progress), (main): Move bar up a little.
2006-09-282006-09-28 Matthew Allum <mallum@openedhand.com>Matthew Allum2-2/+7
* psplash.c: (psplash_draw_progress), (main): img positioning tweaks.
2006-09-282006-09-28 Matthew Allum <mallum@openedhand.com>Matthew Allum7-684/+415
* Makefile.am: * make-image-header.sh: * psplash-bar-img.h: * psplash-hand-img.h: * psplash.c: (psplash_draw_msg), (psplash_draw_progress), (main): Add new hopefully nicer untested images. * psplash-image.h: Remove
2006-09-082006-09-08 Matthew Allum <mallum@openedhand.com>Matthew Allum7-58/+6206
* 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 Allum16-0/+1603