@@ -189,6 +189,25 @@ static void draw_frame(CellPadData *data)
189189 draw_stars (); // now, just to keep them under text lines
190190 #endif
191191 }
192+
193+
194+ /* print headline string, coordinates in canvas */
195+ switch (view )
196+ {
197+ case 1 :
198+ sprintf (tmp_ln , "listing %d folder GAMES on HDD0" , gmc ); // a fixed title
199+ break ;
200+ case 2 :
201+ case 3 :
202+ strcpy (tmp_ln , (char * )(entry_str [0 ][view ] + 3 /*strip leading number*/ ));
203+ break ;
204+ default :
205+ strcpy (tmp_ln , "PS3 VSH Menu" );
206+ break ;
207+ }
208+ tx = get_aligned_x (tmp_ln , CENTER ); // center over width
209+ print_text (tx , BORD_D , tmp_ln ); // minimum border from top
210+
192211
193212 /* print all menu entries for view, and blink the current selected entry */
194213 for (i = 0 ; i < p -> max_lines ; i ++ )
@@ -250,25 +269,6 @@ static void draw_frame(CellPadData *data)
250269 #endif
251270 }
252271
253- /* print headline string, coordinates in canvas */
254- switch (view )
255- {
256- case 1 :
257- case 2 :
258- strcpy (tmp_ln , (char * )(entry_str [0 ][view + 1 ] + 3 /*strip leading number*/ ));
259- break ;
260-
261- case 3 :
262- sprintf (tmp_ln , "listing %d folder GAMES on HDD0" , gmc ); // a fixed title
263- break ;
264-
265- default :
266- strcpy (tmp_ln , "PS3 VSH Menu" );
267- break ;
268- }
269- tx = get_aligned_x (tmp_ln , CENTER ); // center over width
270- print_text (tx , BORD_D , tmp_ln ); // minimum border from top
271-
272272 // ...
273273
274274 if (view == 2 ) // Dump pad data view
@@ -589,7 +589,7 @@ static void do_menu_action(void)
589589 case 2 : /// second menu view ///
590590 switch (line )
591591 {
592- case 0 : // 1: Start UDP debug"
592+ case 0 : // 1: test UDP debug"
593593 #ifdef DEBUG
594594 //dbg_fini();
595595 //dbg_init();
@@ -695,25 +695,25 @@ static void vsh_menu_thread(uint64_t arg)
695695 {
696696 // VSH Menu not running, start VSH Menu
697697 case 0 :
698- view = line = col = 0 ; // main view and start on first entry
698+ view = line = col = 0 ; // main view and start on first entry
699699
700700 pause_RSX_rendering ();
701701
702- create_heap (16 ); // create VSH Menu heap memory from memory container 1("app")
702+ create_heap (16 ); // create VSH Menu heap memory from memory container 1("app")
703703
704- init_graphic (); // initialize VSH Menu graphic
704+ init_graphic (); // initialize VSH Menu graphic
705705
706706 #ifdef HAVE_SYS_FONT
707707 set_font (FONT_W , FONT_H , 1 , FONT_D ); // line-weight = 1 pxl, distance between chars)
708708 #endif
709709
710710 load_png_bitmap (0 , "/dev_hdd0/tentacle.png" ); // load an image
711711
712- start_stop_vsh_pad (0 ); // stop vsh pad
712+ start_stop_vsh_pad (0 ); // stop vsh pad
713713
714- startm = clock (), tick = 0 ; // reset fps counters
714+ startm = clock (), tick = 0 ; // reset fps counters
715715
716- menu_running = 1 ; // set menu_running
716+ menu_running = 1 ; // set menu_running
717717
718718 break ;
719719
0 commit comments