aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-04-01 12:06:49 +0000
committerOlivier Blin <oblin@mandriva.org>2005-04-01 12:06:49 +0000
commit03fca06580a6409030c9cfab01f98bb45341a6b1 (patch)
tree0406fd47b0cb3b7105fdaf58153c1fa7fd3fd3d8
parent0deda7b750497588c4e4291e6044917695b5e1c6 (diff)
downloadbootsplash-03fca06580a6409030c9cfab01f98bb45341a6b1.tar
bootsplash-03fca06580a6409030c9cfab01f98bb45341a6b1.tar.gz
bootsplash-03fca06580a6409030c9cfab01f98bb45341a6b1.tar.bz2
bootsplash-03fca06580a6409030c9cfab01f98bb45341a6b1.tar.xz
bootsplash-03fca06580a6409030c9cfab01f98bb45341a6b1.zip
really try to get resolution from /dev/fb0
-rw-r--r--fb/fbmenu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fb/fbmenu.c b/fb/fbmenu.c
index e92664b..6970014 100644
--- a/fb/fbmenu.c
+++ b/fb/fbmenu.c
@@ -145,8 +145,9 @@ int main(int argc, char **argv) {
exit(0);
}
deflt = argv[3];
-
- if (-1 == open("/dev/fb0",O_RDWR) && getenv("DISPLAY") == NULL) {
+
+ fb = open("/dev/fb0",O_RDWR);
+ if (-1 == fd && getenv("DISPLAY") == NULL) {
signal(SIGALRM, return_default);
alarm(atoi(argv[1]));
do {