menu.c
branchtrunk
changeset 22 93aaf15c145a
parent 0 474a1293c3c0
child 29 640ce9201139
     1.1 --- a/menu.c	Tue Feb 03 12:28:53 2009 +0800
     1.2 +++ b/menu.c	Tue Feb 03 20:33:04 2009 +0800
     1.3 @@ -1,7 +1,7 @@
     1.4  /*
     1.5   * MP3/MPlayer plugin to VDR (C++)
     1.6   *
     1.7 - * (C) 2001-2007 Stefan Huelswitt <s.huelswitt@gmx.de>
     1.8 + * (C) 2001-2009 Stefan Huelswitt <s.huelswitt@gmx.de>
     1.9   *
    1.10   * This code is free software; you can redistribute it and/or
    1.11   * modify it under the terms of the GNU General Public License
    1.12 @@ -39,32 +39,17 @@
    1.13  
    1.14  void Status(const char *text)
    1.15  {
    1.16 -#if APIVERSNUM >= 10307
    1.17    Skins.Message(mtStatus,text);
    1.18 -#else
    1.19 -  if(text) {
    1.20 -    Interface->Status(text);
    1.21 -    Interface->Flush();
    1.22 -    }
    1.23 -#endif
    1.24  }
    1.25  
    1.26  void Error(const char *text)
    1.27  {
    1.28 -#if APIVERSNUM >= 10307
    1.29    Skins.Message(mtError,text);
    1.30 -#else
    1.31 -  Interface->Error(text);
    1.32 -#endif
    1.33  }
    1.34  
    1.35  void Info(const char *text)
    1.36  {
    1.37 -#if APIVERSNUM >= 10307
    1.38    Skins.Message(mtInfo,text);
    1.39 -#else
    1.40 -  Interface->Info(text);
    1.41 -#endif
    1.42  }
    1.43  
    1.44  // --- cMenuBrowseItem ---------------------------------------------------------
    1.45 @@ -390,13 +375,8 @@
    1.46  {
    1.47    if(Total > 0) {
    1.48      int p = Current * Width / Total;;
    1.49 -#if APIVERSNUM >= 10307
    1.50      DrawRectangle(0, 0, p, Height - 1, clrGreen);
    1.51      DrawRectangle(p + 1, 0, Width - 1, Height - 1, clrWhite);
    1.52 -#else
    1.53 -    Fill(0, 0, p, Height - 1, clrGreen);
    1.54 -    Fill(p + 1, 0, Width - 1, Height - 1, clrWhite);
    1.55 -#endif
    1.56 -    }
    1.57 -}
    1.58 -
    1.59 +    }
    1.60 +}
    1.61 +