diff --git a/funkey_prod_screens.c b/funkey_prod_screens.c index d0893f8..f9def77 100644 --- a/funkey_prod_screens.c +++ b/funkey_prod_screens.c @@ -67,7 +67,7 @@ void init_libraries(){ /// Open HW screen and set video mode 240x240 hw_surface = SDL_SetVideoMode(SCREEN_HORIZONTAL_SIZE, SCREEN_VERTICAL_SIZE, - 32, SDL_HWSURFACE | SDL_DOUBLEBUF); + 32, SDL_HWSURFACE | SDL_DOUBLEBUF | SDL_FULLSCREEN); /*hw_surface = SDL_SetVideoMode(SCREEN_HORIZONTAL_SIZE, SCREEN_VERTICAL_SIZE, 32, SDL_HWSURFACE);*/ if (hw_surface == NULL) diff --git a/prodScreen_tearingTest.c b/prodScreen_tearingTest.c index 6c025ba..a6f82ba 100644 --- a/prodScreen_tearingTest.c +++ b/prodScreen_tearingTest.c @@ -6,6 +6,7 @@ #include "funkey_prod_screens.h" static int bright = 0; +FILE *fptr; /// -------------- FUNCTIONS IMPLEMENTATION -------------- static int wait_event_loop(uint32_t fps){ @@ -55,6 +56,7 @@ static int wait_event_loop(uint32_t fps){ bright = 1-bright; /* Flip screen */ + //system("echo 1 > /sys/class/graphics/fb0/switch_backbuf"); SDL_Flip(hw_surface); /* Handle FPS */ @@ -82,8 +84,7 @@ int launch_prod_screen_tearingtest(int argc, char *argv[]){ return EXIT_FAILURE; } } - - printf("fps = %d, argv[0] = %s\n", fps, argv[0]); + //printf("fps = %d, argv[0] = %s\n", fps, argv[0]); /// Main loop int res = wait_event_loop(fps);