Skip to content

Commit

Permalink
Re-formatted code by indent
Browse files Browse the repository at this point in the history
  • Loading branch information
tisnik committed Sep 22, 2022
1 parent 392a6b6 commit 7bc73c1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions rpi_framebuffer/rpi_fb1.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,18 @@ void printFramebufferInfo(int framebufferDevice)
return;
}
/* Nyni je datova struktura FramebufferInfo naplnena. */
printf("Realne rozliseni: %dx%d\n", framebufferInfo.xres, framebufferInfo.yres);
printf("Virtualni rozliseni: %dx%d\n", framebufferInfo.xres_virtual, framebufferInfo.yres_virtual);
printf("Realne rozliseni: %dx%d\n", framebufferInfo.xres,
framebufferInfo.yres);
printf("Virtualni rozliseni: %dx%d\n", framebufferInfo.xres_virtual,
framebufferInfo.yres_virtual);
printf("Bitu na pixel: %d\n", framebufferInfo.bits_per_pixel);
}

int main(int argc, char **argv)
{
int framebufferDevice = 0;

/* Ze zarizeni potrebujeme pouze cist.*/
/* Ze zarizeni potrebujeme pouze cist. */
framebufferDevice = open("/dev/fb0", O_RDONLY);

/* Pokud otevreni probehlo uspesne, nacteme
Expand All @@ -41,10 +43,9 @@ int main(int argc, char **argv)
close(framebufferDevice);
return 0;
}
/* Otevreni se nezadarilo, vypiseme chybove hlaseni.*/
/* Otevreni se nezadarilo, vypiseme chybove hlaseni. */
else {
perror("Nelze otevrit ovladac /dev/fb0");
return 1;
}
}

0 comments on commit 7bc73c1

Please sign in to comment.