Skip to content

Commit a5b362a

Browse files
committed
updated tearing test
1 parent 0f1c90f commit a5b362a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

funkey_prod_screens.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void init_libraries(){
6767

6868
/// Open HW screen and set video mode 240x240
6969
hw_surface = SDL_SetVideoMode(SCREEN_HORIZONTAL_SIZE, SCREEN_VERTICAL_SIZE,
70-
32, SDL_HWSURFACE | SDL_DOUBLEBUF);
70+
32, SDL_HWSURFACE | SDL_DOUBLEBUF | SDL_FULLSCREEN);
7171
/*hw_surface = SDL_SetVideoMode(SCREEN_HORIZONTAL_SIZE, SCREEN_VERTICAL_SIZE,
7272
32, SDL_HWSURFACE);*/
7373
if (hw_surface == NULL)

prodScreen_tearingTest.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "funkey_prod_screens.h"
77

88
static int bright = 0;
9+
FILE *fptr;
910

1011
/// -------------- FUNCTIONS IMPLEMENTATION --------------
1112
static int wait_event_loop(uint32_t fps){
@@ -55,6 +56,7 @@ static int wait_event_loop(uint32_t fps){
5556
bright = 1-bright;
5657

5758
/* Flip screen */
59+
//system("echo 1 > /sys/class/graphics/fb0/switch_backbuf");
5860
SDL_Flip(hw_surface);
5961

6062
/* Handle FPS */
@@ -82,8 +84,7 @@ int launch_prod_screen_tearingtest(int argc, char *argv[]){
8284
return EXIT_FAILURE;
8385
}
8486
}
85-
86-
printf("fps = %d, argv[0] = %s\n", fps, argv[0]);
87+
//printf("fps = %d, argv[0] = %s\n", fps, argv[0]);
8788

8889
/// Main loop
8990
int res = wait_event_loop(fps);

0 commit comments

Comments
 (0)