@@ -341,8 +341,14 @@ static void add_menu_zone(ENUM_MENU_TYPE menu_type)
341341 SDL_BlitSurface (text_surface , NULL , surface , & text_pos );
342342 break ;
343343#endif
344- #ifdef HAS_MENU_POWERDOWN
344+ #ifdef HAS_MENU_RO_RW
345345 case MENU_TYPE_RO_RW :
346+ MENU_DEBUG_PRINTF ("Init MENU_TYPE_RO_RW\n" );
347+ /// ------ Text ------
348+ text_surface = TTF_RenderText_Blended (menu_title_font , "SET SYSTEM:" , text_color );
349+ text_pos .x = (surface -> w - MENU_ZONE_WIDTH )/2 + (MENU_ZONE_WIDTH - text_surface -> w )/2 ;
350+ text_pos .y = surface -> h - MENU_ZONE_HEIGHT /2 - text_surface -> h /2 - padding_y_from_center_menu_zone * 2 ;
351+ SDL_BlitSurface (text_surface , NULL , surface , & text_pos );
346352 break ;
347353#endif
348354 default :
@@ -371,6 +377,9 @@ static void init_menu_zones(void)
371377#ifdef HAS_MENU_ASPECT_RATIO
372378 add_menu_zone (MENU_TYPE_ASPECT_RATIO );
373379#endif
380+ #ifdef HAS_MENU_RO_RW
381+ add_menu_zone (MENU_TYPE_RO_RW );
382+ #endif
374383#ifdef HAS_MENU_EXIT
375384 add_menu_zone (MENU_TYPE_EXIT );
376385#endif
@@ -386,9 +395,6 @@ static void init_menu_zones(void)
386395#ifdef HAS_MENU_POWERDOWN
387396 add_menu_zone (MENU_TYPE_POWERDOWN );
388397#endif
389- #ifdef HAS_MENU_RO_RW
390- add_menu_zone (MENU_TYPE_RO_RW );
391- #endif
392398}
393399
394400
@@ -795,7 +801,7 @@ static void menu_screen_refresh(SDL_Surface *screen, int menuItem, int prevItem,
795801#endif
796802#ifdef HAS_MENU_RO_RW
797803 case MENU_TYPE_RO_RW :
798- sprintf (text_tmp , "SYS %s" , read_write ?"READ-ONLY" :"READ-WRITE" );
804+ sprintf (text_tmp , "%s" , read_write ?"READ-ONLY" :"READ-WRITE" );
799805 text_surface = TTF_RenderText_Blended (menu_title_font , text_tmp , text_color );
800806 text_pos .x = (screen -> w - MENU_ZONE_WIDTH )/2 + (MENU_ZONE_WIDTH - text_surface -> w )/2 ;
801807 text_pos .y = screen -> h - MENU_ZONE_HEIGHT /2 - text_surface -> h /2 ;
@@ -1303,7 +1309,7 @@ int FK_RunMenu(SDL_Surface *screen)
13031309#endif
13041310#ifdef HAS_MENU_RO_RW
13051311 if (idx_menus [menuItem ] == MENU_TYPE_RO_RW ){
1306- MENU_DEBUG_PRINTF ("SYSTEM %s\n" , read_write ?"RO" :"RW" );
1312+ MENU_DEBUG_PRINTF ("%s\n" , read_write ?"RO" :"RW" );
13071313 if (menu_confirmation ){
13081314 MENU_DEBUG_PRINTF ("SYSTEM %s - confirmed\n" , read_write ?"RO" :"RW" );
13091315 /// ----- Refresh screen ----
0 commit comments