diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-04-01 12:06:49 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-04-01 12:06:49 +0000 |
commit | 03fca06580a6409030c9cfab01f98bb45341a6b1 (patch) | |
tree | 0406fd47b0cb3b7105fdaf58153c1fa7fd3fd3d8 | |
parent | 0deda7b750497588c4e4291e6044917695b5e1c6 (diff) | |
download | bootsplash-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.c | 5 |
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 { |