@@ -286,16 +286,6 @@ static void add_menu_zone(ENUM_MENU_TYPE menu_type)
286286 SDL_BlitSurface (text_surface , NULL , surface , & text_pos );
287287 break ;
288288#endif
289- #ifdef HAS_MENU_EXIT
290- case MENU_TYPE_EXIT :
291- MENU_DEBUG_PRINTF ("Init MENU_TYPE_EXIT\n" );
292- /// ------ Text ------
293- text_surface = TTF_RenderText_Blended (menu_title_font , "EXIT APP" , text_color );
294- text_pos .x = (surface -> w - MENU_ZONE_WIDTH )/2 + (MENU_ZONE_WIDTH - text_surface -> w )/2 ;
295- text_pos .y = surface -> h - MENU_ZONE_HEIGHT /2 - text_surface -> h /2 ;
296- SDL_BlitSurface (text_surface , NULL , surface , & text_pos );
297- break ;
298- #endif
299289#ifdef HAS_MENU_USB
300290 case MENU_TYPE_USB :
301291 MENU_DEBUG_PRINTF ("Init MENU_TYPE_USB\n" );
@@ -331,16 +321,6 @@ static void add_menu_zone(ENUM_MENU_TYPE menu_type)
331321 SDL_BlitSurface (text_surface , NULL , surface , & text_pos );
332322 break ;
333323#endif
334- #ifdef HAS_MENU_POWERDOWN
335- case MENU_TYPE_POWERDOWN :
336- MENU_DEBUG_PRINTF ("Init MENU_TYPE_POWERDOWN\n" );
337- /// ------ Text ------
338- text_surface = TTF_RenderText_Blended (menu_title_font , "POWERDOWN" , text_color );
339- text_pos .x = (surface -> w - MENU_ZONE_WIDTH )/2 + (MENU_ZONE_WIDTH - text_surface -> w )/2 ;
340- text_pos .y = surface -> h - MENU_ZONE_HEIGHT /2 - text_surface -> h /2 ;
341- SDL_BlitSurface (text_surface , NULL , surface , & text_pos );
342- break ;
343- #endif
344324#ifdef HAS_MENU_RO_RW
345325 case MENU_TYPE_RO_RW :
346326 MENU_DEBUG_PRINTF ("Init MENU_TYPE_RO_RW\n" );
@@ -350,6 +330,26 @@ static void add_menu_zone(ENUM_MENU_TYPE menu_type)
350330 text_pos .y = surface -> h - MENU_ZONE_HEIGHT /2 - text_surface -> h /2 - padding_y_from_center_menu_zone * 2 ;
351331 SDL_BlitSurface (text_surface , NULL , surface , & text_pos );
352332 break ;
333+ #endif
334+ #ifdef HAS_MENU_EXIT
335+ case MENU_TYPE_EXIT :
336+ MENU_DEBUG_PRINTF ("Init MENU_TYPE_EXIT\n" );
337+ /// ------ Text ------
338+ text_surface = TTF_RenderText_Blended (menu_title_font , "EXIT APP" , text_color );
339+ text_pos .x = (surface -> w - MENU_ZONE_WIDTH )/2 + (MENU_ZONE_WIDTH - text_surface -> w )/2 ;
340+ text_pos .y = surface -> h - MENU_ZONE_HEIGHT /2 - text_surface -> h /2 ;
341+ SDL_BlitSurface (text_surface , NULL , surface , & text_pos );
342+ break ;
343+ #endif
344+ #ifdef HAS_MENU_POWERDOWN
345+ case MENU_TYPE_POWERDOWN :
346+ MENU_DEBUG_PRINTF ("Init MENU_TYPE_POWERDOWN\n" );
347+ /// ------ Text ------
348+ text_surface = TTF_RenderText_Blended (menu_title_font , "POWERDOWN" , 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 ;
351+ SDL_BlitSurface (text_surface , NULL , surface , & text_pos );
352+ break ;
353353#endif
354354 default :
355355 MENU_DEBUG_PRINTF ("Warning - In add_menu_zone, unknown MENU_TYPE: %d\n" , menu_type );
0 commit comments