From 1d0a993ae9719c3054bf47b5ff019bf216fe9c98 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Sat, 5 Feb 2011 00:54:58 +0100 Subject: [PATCH] don't use devfs names: /dev/fb/0 -> /dev/fb0 --- lib/gdi/bcm.cpp | 4 ++-- lib/gdi/fb.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/gdi/bcm.cpp b/lib/gdi/bcm.cpp index 12b5f22a..ccf16f41 100644 --- a/lib/gdi/bcm.cpp +++ b/lib/gdi/bcm.cpp @@ -23,10 +23,10 @@ static int exec_list(void); int bcm_accel_init(void) { - fb_fd = open("/dev/fb/0", O_RDWR); + fb_fd = open("/dev/fb0", O_RDWR); if (fb_fd < 0) { - perror("/dev/fb/0"); + perror("/dev/fb0"); return 1; } if (exec_list()) diff --git a/lib/gdi/fb.h b/lib/gdi/fb.h index 54473805..fcb5ff27 100644 --- a/lib/gdi/fb.h +++ b/lib/gdi/fb.h @@ -19,7 +19,7 @@ class fbClass int m_number_of_pages; int m_phys_mem; #ifdef SWIG - fbClass(const char *fb="/dev/fb/0"); + fbClass(const char *fb="/dev/fb0"); ~fbClass(); public: #else @@ -41,7 +41,7 @@ public: unsigned int Stride() { return stride; } fb_cmap *CMAP() { return &cmap; } - fbClass(const char *fb="/dev/fb/0"); + fbClass(const char *fb="/dev/fb0"); ~fbClass(); // low level gfx stuff -- 2.30.2