if myForward FILE fopen sys class graphics fb0 disable_auto_redraw fwr

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if(myForward) {
/* FILE *x = fopen("/sys/class/graphics/fb0/disable_auto_redraw", "w");
fwrite("0", 1, 1, x);
rewind(x);
fwrite("1", 1, 1, x);
fclose(x);
*/
int x;
x = open("/dev/fb0", O_NONBLOCK);
ioctl(x, 0x4623);
ioctl(x, 0x4620);
ioctl(x, 0x4621, 0);
close(x);
}
render_page();
if(myForward) {
int x;
x = open("/dev/fb0", O_NONBLOCK);
ioctl(x, 0x4621, 1);
close(x);
}