Home | History | Annotate | Download | only in toolbox

Lines Matching refs:fbinfo

20     struct fb_var_screeninfo fbinfo;
49 res = ioctl(fd, FBIOGET_VSCREENINFO, &fbinfo);
51 fprintf(stderr, "failed to get fbinfo: %s\n", strerror(errno));
54 if((fbinfo.rotate ^ rotation) & 1) {
55 unsigned int xres = fbinfo.yres;
56 fbinfo.yres = fbinfo.xres;
57 fbinfo.xres = xres;
58 fbinfo.xres_virtual = fbinfo.xres;
59 fbinfo.yres_virtual = fbinfo.yres * 2;
60 if(fbinfo.yoffset == xres)
61 fbinfo.yoffset = fbinfo.yres;
63 fbinfo.rotate = rotation;
64 res = ioctl(fd, FBIOPUT_VSCREENINFO, &fbinfo);
66 fprintf(stderr, "failed to set fbinfo: %s\n", strerror(errno));