Changeset 25548


Ignore:
Timestamp:
01/09/14 16:36:54 (9 years ago)
Author:
obi
Message:

[atemio520] enable new rc if selected

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/adjust.h

    r24843 r25548  
    5050        struct skin* playerbufferseektime = getscreennode(adjust, "playerbufferseektime");
    5151        struct skin* sataswitch = getscreennode(adjust, "sataswitch");
     52        struct skin* rcswitch = getscreennode(adjust, "rcswitch");
    5253
    5354        struct skin* tmp = NULL;
     
    247248        else
    248249                sataswitch->hidden = YES;
     250
     251        if(checkbox("ATEMIO520") == 1 || checkbox("ATEMIO530") == 1)
     252        {
     253                sataswitch->hidden = NO;
     254                addchoicebox(rcswitch, "0", _("old"));
     255                addchoicebox(rcswitch, "1", _("new"));
     256                setchoiceboxselection(rcswitch, getconfig("rcswitch", NULL));
     257        }
     258        else
     259                rcswitch->hidden = YES;
    249260       
    250261        addchoicebox(playerbuffersize, "0", _("no"));
     
    358369                                addconfigscreencheck("usecec", usecec, "0");
    359370
     371                        if(checkbox("ATEMIO520") == 1 || checkbox("ATEMIO530") == 1)
     372                                addconfigscreencheck("rcswitch", rcswitch, "0");
     373
    360374                        if(checkbox("ATEMIO7600") == 1)
    361375                        {
  • titan/titan/infobar.h

    r25179 r25548  
    132132                }
    133133
    134                 if(rcret == getrcconfigint("rcpause", NULL) || ((checkbox("ATEMIO520") == 1 || checkbox("ATEMIO530") == 1) && rcret == getrcconfigint("rcplay", NULL) && status.pause == 0 && status.slowspeed == 0 && status.playspeed == 0))
     134                if(rcret == getrcconfigint("rcpause", NULL) || (((checkbox("ATEMIO520") == 1 || checkbox("ATEMIO530") == 1) && ostrcmp(getconfig("rcswitch", NULL), "0") == 0) && rcret == getrcconfigint("rcplay", NULL) && status.pause == 0 && status.slowspeed == 0 && status.playspeed == 0))
    135135                {
    136136                        //timeshift
     
    163163                        if(rcret == getrcconfigint("rcplay", NULL))
    164164                        {
    165                                 if(checkbox("ATEMIO520") != 1 && checkbox("ATEMIO530") != 1 && status.timeshifttype == 1)
     165                                if((checkbox("ATEMIO520") != 1 && checkbox("ATEMIO530") != 1 && status.timeshifttype == 1) || (ostrcmp(getconfig("rcswitch", NULL), "1") == 1 && (checkbox("ATEMIO520") == 1 || checkbox("ATEMIO530") == 1)))
    166166                                {
    167167                                        if(status.playing == 0 || (status.playspeed == 0 && status.slowspeed == 0 && status.pause == 0))
Note: See TracChangeset for help on using the changeset viewer.