Removed a few useless code (it was commented anyway).
authorRicardo Cruz <rick2@aeiou.pt>
Thu, 22 Apr 2004 17:51:03 +0000 (17:51 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Thu, 22 Apr 2004 17:51:03 +0000 (17:51 +0000)
SVN-Revision: 645

src/menu.cpp

index 010f358..3fe7226 100644 (file)
@@ -329,8 +329,6 @@ Menu::action()
                 Menu::set_current(0); 
                 item[active_item].toggled = true;
                 break;
-              case MN_CONTROLFIELD:
-                break;
 
               case MN_BACK:
                 Menu::pop_current();
@@ -515,32 +513,6 @@ Menu::draw_item(int index, // Position of the current item in the menu
                               A_HMIDDLE, A_VMIDDLE, shadow_size);
         break;
       }
-//    case MN_CONTROLFIELD:
-//      {
-        /* display key */  // FIXME: the key number is not that obvious to the user :P
-/*        char str[12];
-        sprintf(str, "%i", *pitem.int_p);
-        input_width = strlen(str) * font_width;
-
-        int input_pos = input_width/2;
-        int text_pos  = (text_width + font_width)/2;
-
-        fillrect(x_pos - input_pos + text_pos - 1, y_pos - 10,
-                 input_width + font_width + 2, 20,
-                 255,255,255,255);
-        fillrect(x_pos - input_pos + text_pos, y_pos - 9,
-                 input_width + font_width, 18,
-                 0,0,0,128);
-
-        gold_text->draw_align(str,
-                              x_pos + text_pos, y_pos,
-                              A_HMIDDLE, A_VMIDDLE, 2);
-
-        text_font->draw_align(pitem.text,
-                              x_pos - (input_width + font_width)/2, y_pos,
-                              A_HMIDDLE, A_VMIDDLE, shadow_size);
-        break;
-      }*/
     case MN_STRINGSELECT:
       {
         int list_pos_2 = list_width + font_width;