forked from tano-systems/psplash-tn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
psplash-config.h
95 lines (75 loc) · 2.83 KB
/
psplash-config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
* pslash - a lightweight framebuffer splashscreen for embedded devices.
*
* Copyright (c) 2020 Tano Systems LLC
* Author: Anton Kikin <a.kikin@tano-systems.com>
*
* Copyright (c) 2014 MenloSystems GmbH
* Author: Olaf Mandel <o.mandel@menlosystems.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef _HAVE_PSPLASH_CONFIG_H
#define _HAVE_PSPLASH_CONFIG_H
/* Text to output on program start; if undefined, output nothing */
#ifndef PSPLASH_STARTUP_MSG
#define PSPLASH_STARTUP_MSG ""
#endif
/* String for the image to display as the splash screen image */
#ifndef PSPLASH_IMAGE
#define PSPLASH_IMAGE "/usr/share/psplash/logo.png"
#endif
/* Bool indicating if the image is fullscreen, as opposed to split screen */
#ifndef PSPLASH_IMG_FULLSCREEN
#define PSPLASH_IMG_FULLSCREEN 1
#endif
/* Framebuffer rotation (in degrees) */
#ifndef PSPLASH_ROTATION
#define PSPLASH_ROTATION 0
#endif
/* Position of the image split from top edge, numerator of fraction */
#define PSPLASH_IMG_SPLIT_NUMERATOR 5
/* Position of the image split from top edge, denominator of fraction */
#define PSPLASH_IMG_SPLIT_DENOMINATOR 6
/* Padding for message (space in pixels between message and progress bar) */
#define PSPLASH_MSG_PADDING 4
/* Progress bar width (in pixels) */
#ifndef PSPLASH_BAR_WIDTH
#define PSPLASH_BAR_WIDTH 340
#endif
/* Progress bar height (in pixels) */
#ifndef PSPLASH_BAR_HEIGHT
#define PSPLASH_BAR_HEIGHT 30
#endif
/* Progress bar border thickness (in pixels) */
#define PSPLASH_BAR_BORDER_WIDTH 2
/* Size in pixels between progress bar and its border */
#define PSPLASH_BAR_BORDER_SPACE 2
#if defined(ENABLE_ALIVE_GIF)
/* String for the animated gif to display as the splash screen image */
#ifndef PSPLASH_ALIVE_GIF
#define PSPLASH_ALIVE_GIF "/usr/share/psplash/logo.gif"
#endif
/* Position of the alive image split from top edge, numerator of fraction */
#ifndef PSPLASH_ALIVE_IMG_V_SPLIT_NUMERATOR
#define PSPLASH_ALIVE_IMG_V_SPLIT_NUMERATOR 1
#endif
/* Position of the alive image split from top edge, denominator of fraction */
#define PSPLASH_ALIVE_IMG_V_SPLIT_DENOMINATOR 6
/* Position of the alive image split from left edge, numerator of fraction */
#ifndef PSPLASH_ALIVE_IMG_H_SPLIT_NUMERATOR
#define PSPLASH_ALIVE_IMG_H_SPLIT_NUMERATOR 1
#endif
/* Position of the alive image split from left edge, denominator of fraction */
#define PSPLASH_ALIVE_IMG_H_SPLIT_DENOMINATOR 6
#endif
#endif