-bool init_gfx()
-{
- if((dev_fd = open("/dev/fb0", O_RDWR)) == -1) {
- fprintf(stderr, "Cannot open /dev/fb0 : %s\n", strerror(errno));
- return false;
- }
-
- fb_var_screeninfo sinfo;
- if(ioctl(dev_fd, FBIOGET_VSCREENINFO, &sinfo) == -1) {
- close(dev_fd);
- dev_fd = -1;
- fprintf(stderr, "Unable to get screen info : %s\n", strerror(errno));
- return false;
- }
+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.