Fix Second Framebuffer's position calculation
[platform/core/system/initrd-recovery.git] / src / librui / graphics-fbdev-common.c
index e0255d2..2c4077d 100644 (file)
@@ -47,6 +47,11 @@ bool fbdev_init_common(gr_backend *backend) {
                 return false;
         }
 
+       if (ioctl(fb->fd, FBIOGET_FSCREENINFO, &fb->fi) < 0) {
+               printf("Failed to get fb0 fix info");
+               return false;
+       }
+
         /* If you have a device that has other BPP  patches welcome... */
         if (fb->vi.bits_per_pixel != 32) {
                 printf("Non-32-bit framebuffers not supported yet. Sorry.\n");