@@ -68,16 +68,25 @@ int launch_prod_screen_magnet(int argc, char *argv[]){
6868 SDL_FillRect (hw_surface , NULL , SDL_MapRGBA (hw_surface -> format , bg_color .r , bg_color .g , bg_color .b , 0 ) );
6969
7070 /* Write Title */
71- text_surface = TTF_RenderText_Shaded (font_title , "FunKey PCBA Tests" , text_color , bg_color );
71+ text_surface = TTF_RenderText_Shaded (font_title , prog_title , text_color , bg_color );
7272 text_pos .x = SCREEN_HORIZONTAL_SIZE /2 - text_surface -> w /2 ;
7373 text_pos .y = Y_PADDING ;
7474 SDL_BlitSurface (text_surface , NULL , hw_surface , & text_pos );
7575 SDL_FreeSurface (text_surface );
7676
77- /* Write "Screen ok ? */
77+ /* Write
78+ " MAGNET TEST
79+ (close the console)*/
80+ int y_pad_tmp = 11 ;
7881 text_surface = TTF_RenderText_Shaded (font_title , "MAGNET TEST" , text_color , bg_color );
7982 text_pos .x = SCREEN_HORIZONTAL_SIZE /2 - text_surface -> w /2 ;
80- text_pos .y = SCREEN_VERTICAL_SIZE /2 - text_surface -> h /2 ;
83+ text_pos .y = SCREEN_VERTICAL_SIZE /2 - text_surface -> h /2 - y_pad_tmp ;
84+ SDL_BlitSurface (text_surface , NULL , hw_surface , & text_pos );
85+ SDL_FreeSurface (text_surface );
86+
87+ text_surface = TTF_RenderText_Shaded (font_title , "(close the console)" , text_color , bg_color );
88+ text_pos .x = SCREEN_HORIZONTAL_SIZE /2 - text_surface -> w /2 ;
89+ text_pos .y = SCREEN_VERTICAL_SIZE /2 - text_surface -> h /2 + y_pad_tmp ;
8190 SDL_BlitSurface (text_surface , NULL , hw_surface , & text_pos );
8291 SDL_FreeSurface (text_surface );
8392
0 commit comments