summaryrefslogtreecommitdiffstats
path: root/sent.c
Commit message (Collapse)AuthorAgeFilesLines
* Change an eprintf to a die to stop child from running its own slideshowDavid Phillips2015-12-241-1/+1
| | | | | | | | | The child thread was created because execlp will not return if successful. The eprintf was placed after the call to execlp to catch any error, but the child continued to return a (closed) fds[0], resulting in a second slideshow being run by the child. This commit fixes the issue by killing the child.
* filter via shell pipelineGrant Mathews2015-12-241-2/+2
| | | | | Instead of requiring an executable, allow building arbitrary shell pipelines to filter filetypes through.
* unbreak the buildMarkus Teich2015-12-091-2/+2
|
* fix 2 uninitialized variables and bin == NULL checkMarkus Teich2015-12-091-8/+9
|
* check for bin == NULLMarkus Teich2015-12-081-1/+2
|
* minor syntax, style and README fixesMarkus Teich2015-12-081-11/+12
|
* support transparent imagesMarkus Teich2015-12-081-3/+16
|
* Support farbfeld as an intermediate formatsin2015-12-081-91/+113
| | | | | | | | | | | | | | | | | Sent now uses farbfeld[0] as an intermediate format. A series of filters is specified in config.h that matches file extensions to filter programs. The programs will convert between formats such as png to farbfeld. Internally in sent we do not need to worry on how to parse png or any other format. This also works with jpg and gif and others. The 2ff wrapper will use imagemagick conversion tools. This is temporary as jpg2ff and gif2ff will also be implemented. To make this work, you will have to clone[0] and put png2ff and 2ff in your PATH. [0] http://git.2f30.org/farbfeld/
* add 'sent: ' prefix to errorsMarkus Teich2015-12-031-0/+2
|
* Refactor die() to use eprintf()Alexis2015-12-031-7/+1
|
* Use consistent wording for error messagesAlexis2015-12-031-19/+19
|
* Bail out before allocating slides if file is emptyQuentin Rameau2015-11-181-4/+4
| | | | | | In load() we allocated slides before checking if we actually read anything from the FILE fp and then continue with an allocated but “empty” space wich would lead to errors.
* fix dying on empty slidefileMarkus Teich2015-11-181-1/+1
|
* die if no font could be loadedMarkus Teich2015-11-181-1/+2
|
* prevent flickering when changing slidesMarkus Teich2015-11-171-2/+2
| | | | | | | | When the window background is left at WhitePixel (from initialization) and the user has set a dark background color in config.h, the window shortly displays the white default background when clearing after advancing to another slide. This was very disturbing and is fixed now by setting the default window background color to the bgcol chosen in config.h.
* fix another index overflow issueMarkus Teich2015-11-171-1/+2
|
* fix several number overflow issuesMarkus Teich2015-11-171-3/+3
|
* add multiline supportMarkus Teich2015-11-111-42/+91
|
* fix more memory leaksMarkus Teich2015-11-111-2/+6
|
* free all fonts correctlyMarkus Teich2015-11-111-0/+2
|
* free temporary fontstr arraysMarkus Teich2015-11-111-0/+4
|
* simplify png cleanupMarkus Teich2015-11-111-8/+16
|
* don't assume we get a ConfigureNotify eventTony Lainson2015-11-101-2/+1
| | | | | | | | If the window manager maps our window at the requested size, we may not get a ConfigureNotify event. This happens e.g. under ratpoison. The result is that xw.uw and xw.uh are never set, so text is too small and pngscale() tries to divide by 0.
* initialize .imgSzabolcs Nagy2015-11-101-0/+2
| | | | without the attached patch ./sent example segfaults here
* don't use EXIT_… cpp definesMarkus Teich2015-11-071-1/+1
|
* make colors configurableMarkus Teich2015-11-041-1/+1
|
* update license yearMarkus Teich2015-11-041-2/+2
|
* remove unused font configuration, update license yearMarkus Teich2015-10-311-8/+5
|
* fix font width calculationsMarkus Teich2015-10-311-3/+4
|
* remove unused type qualifiersMarkus Teich2015-10-311-2/+2
|
* fonts are automatically cleaned upMarkus Teich2015-08-291-4/+0
|
* drw_resize should be called on mapping as wellMarkus Teich2015-05-031-1/+1
|
* remove debug statementMarkus Teich2015-05-021-1/+0
|
* typedef image structMarkus Teich2015-05-011-16/+16
|
* minor style adaptionsMarkus Teich2015-04-301-6/+7
|
* fonts cleanupMarkus Teich2015-04-281-0/+4
|
* remove unused dc/gc variablesMarkus Teich2015-04-271-24/+3
|
* remove old stuff and fix warningsMarkus Teich2015-04-251-124/+3
|
* blank screen before drawing textMarkus Teich2015-04-221-0/+1
|
* fix calculation of correct font size to useMarkus Teich2015-04-221-2/+7
|
* use new font system from drwMarkus Teich2015-04-201-32/+34
|
* minor style fix and new var for fontsMarkus Teich2015-04-191-1/+2
|
* use die() where it should be usedMarkus Teich2015-04-111-8/+8
|
* use drw color scheme fixupMarkus Teich2015-04-101-7/+4
|
* some work on using drw.c doneMarkus Teich2015-04-091-42/+79
|
* add utf8 support, scaling and positioning missing.Markus Teich2015-04-071-4/+20
|
* init and clear drw contextMarkus Teich2015-04-061-0/+9
|
* support for comments to ignore linesJonas Jelten2015-01-191-2/+5
| | | | | use # as first character in a line to skip this line from the slides.
* add png supportMarkus Teich2014-06-291-18/+249
|
* add stuffMarkus Teich2014-06-231-0/+468