Changeset 32106


Ignore:
Timestamp:
01/05/15 16:32:53 (8 years ago)
Author:
Stephan
Message:

revert oled change

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/skin.h

    r32105 r32106  
    3636
    3737#ifdef MIPSEL
    38         if(checkrealbox("INI-8000AM") == 1)
    39         {       
    40                 if(ostrcmp("getoledmute", value) == 0)
    41                 {
    42                         *rettype = FUNCPIC;
    43                         return &getoledmute;
    44                 }
    45 
    46                 if(ostrcmp("getoledtimeshift", value) == 0)
    47                 {
    48                         *rettype = FUNCPIC;
    49                         return &getoledtimeshift;
    50                 }
    51 
    52                 if(ostrcmp("getoledrec", value) == 0)
    53                 {
    54                         *rettype = FUNCPIC;
    55                         return &getoledrec;
    56                 }
    57 
    58                 if(ostrcmp("getoledstreaming", value) == 0)
    59                 {
    60                         *rettype = FUNCPIC;
    61                         return &getoledstreaming;
    62                 }
    63         }
     38        if(ostrcmp("getoledmute", value) == 0)
     39        {
     40                *rettype = FUNCPIC;
     41                return &getoledmute;
     42        }
     43
     44        if(ostrcmp("getoledtimeshift", value) == 0)
     45        {
     46                *rettype = FUNCPIC;
     47                return &getoledtimeshift;
     48        }
     49
     50        if(ostrcmp("getoledrec", value) == 0)
     51        {
     52                *rettype = FUNCPIC;
     53                return &getoledrec;
     54        }
     55
     56        if(ostrcmp("getoledstreaming", value) == 0)
     57        {
     58                *rettype = FUNCPIC;
     59                return &getoledstreaming;
     60        }
     61
    6462#endif
    6563
  • titan/titan/skinfunc.h

    r32105 r32106  
    144144
    145145#ifdef MIPSEL
    146         if(checkrealbox("INI-8000AM") == 1)
    147         {
    148         //rec png
    149                 char* getoledrec(struct skin* node, char* path)
    150                 {
    151                         char* tmpstr = NULL;
    152 
    153                         if(status.recording > 0)
    154                         {
    155                                 tmpstr = ostrcat("oled_rec.png", NULL, 0, 0);
    156 
    157                                 if(path != NULL) tmpstr = ostrcat("/", tmpstr, 0, 1);
    158                                 tmpstr = ostrcat(path, tmpstr, 0, 1);
    159                         }
    160        
    161                         return tmpstr;
    162                 }
    163         //mute png
    164                 char* getoledmute(struct skin* node, char* path)
    165                 {
    166                         char* tmpstr = NULL;
    167 
    168                         if(status.mute > 0)
    169                         {
    170                                 tmpstr = ostrcat("oled_mute.png", NULL, 0, 0);
    171 
    172                                 if(path != NULL) tmpstr = ostrcat("/", tmpstr, 0, 1);
    173                                 tmpstr = ostrcat(path, tmpstr, 0, 1);
    174                         }
     146//rec png
     147        char* getoledrec(struct skin* node, char* path)
     148        {
     149                char* tmpstr = NULL;
     150
     151                if(status.recording > 0)
     152                {
     153                        tmpstr = ostrcat("oled_rec.png", NULL, 0, 0);
     154
     155                        if(path != NULL) tmpstr = ostrcat("/", tmpstr, 0, 1);
     156                        tmpstr = ostrcat(path, tmpstr, 0, 1);
     157                }
     158       
     159                return tmpstr;
     160        }
     161//mute png
     162        char* getoledmute(struct skin* node, char* path)
     163        {
     164                char* tmpstr = NULL;
     165
     166                if(status.mute > 0)
     167                {
     168                        tmpstr = ostrcat("oled_mute.png", NULL, 0, 0);
     169
     170                        if(path != NULL) tmpstr = ostrcat("/", tmpstr, 0, 1);
     171                        tmpstr = ostrcat(path, tmpstr, 0, 1);
     172                }
    175173               
    176                         return tmpstr;
    177                 }
    178 
    179         //timeshift png
    180                 char* getoledtimeshift(struct skin* node, char* path)
    181                 {
    182                         char* tmpstr = NULL;
    183 
    184                         if(status.timeshift > 0)
    185                         {
    186                                 tmpstr = ostrcat("oled_timeshift.png", NULL, 0, 0);
    187 
    188                                 if(path != NULL) tmpstr = ostrcat("/", tmpstr, 0, 1);
    189                                 tmpstr = ostrcat(path, tmpstr, 0, 1);
    190                         }
     174                return tmpstr;
     175        }
     176
     177//timeshift png
     178        char* getoledtimeshift(struct skin* node, char* path)
     179        {
     180                char* tmpstr = NULL;
     181
     182                if(status.timeshift > 0)
     183                {
     184                        tmpstr = ostrcat("oled_timeshift.png", NULL, 0, 0);
     185
     186                        if(path != NULL) tmpstr = ostrcat("/", tmpstr, 0, 1);
     187                        tmpstr = ostrcat(path, tmpstr, 0, 1);
     188                }
    191189               
    192                         return tmpstr;
    193                 }
    194 
    195         //streaming png
    196                 char* getoledstreaming(struct skin* node, char* path)
    197                 {
    198                         char* tmpstr = NULL;
    199 
    200                         if(status.streaming > 0)
    201                         {
    202                                 tmpstr = ostrcat("oled_streaming.png", NULL, 0, 0);
    203 
    204                                 if(path != NULL) tmpstr = ostrcat("/", tmpstr, 0, 1);
    205                                 tmpstr = ostrcat(path, tmpstr, 0, 1);
    206                         }
     190                return tmpstr;
     191        }
     192
     193//streaming png
     194        char* getoledstreaming(struct skin* node, char* path)
     195        {
     196                char* tmpstr = NULL;
     197
     198                if(status.streaming > 0)
     199                {
     200                        tmpstr = ostrcat("oled_streaming.png", NULL, 0, 0);
     201
     202                        if(path != NULL) tmpstr = ostrcat("/", tmpstr, 0, 1);
     203                        tmpstr = ostrcat(path, tmpstr, 0, 1);
     204                }
    207205               
    208                         return tmpstr;
    209                 }
    210         }
     206                return tmpstr;
     207        }
     208       
    211209#endif
    212210
Note: See TracChangeset for help on using the changeset viewer.