Changeset 28037


Ignore:
Timestamp:
03/28/14 14:03:28 (10 years ago)
Author:
obi
Message:

[titan] mipsel fix teletext

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/infobar.h

    r27994 r28037  
    387387                                drawscreen(skin, 0, 0);
    388388                                status.tuxtxt = 1;
     389                                disablemanualblit();
     390#ifdef MIPSEL
     391                                int tmprcret = -1;
     392                                tmpstr = ostrcat(tmpstr, " &", 1, 0);
    389393                                system(tmpstr);
     394
     395                                while(1)
     396                                {
     397                                        rcret = waitrc(infobar, 0, 0);
     398                                       
     399                                        if(rcret == getrcconfigint("rc0", NULL)) tmprcret = 0x00;
     400                                        else if(rcret == getrcconfigint("rc1", NULL)) tmprcret = 0x01;
     401                                        else if(rcret == getrcconfigint("rc2", NULL)) tmprcret = 0x02;
     402                                        else if(rcret == getrcconfigint("rc3", NULL)) tmprcret = 0x03;
     403                                        else if(rcret == getrcconfigint("rc4", NULL)) tmprcret = 0x04;
     404                                        else if(rcret == getrcconfigint("rc5", NULL)) tmprcret = 0x05;
     405                                        else if(rcret == getrcconfigint("rc6", NULL)) tmprcret = 0x06;
     406                                        else if(rcret == getrcconfigint("rc7", NULL)) tmprcret = 0x07;
     407                                        else if(rcret == getrcconfigint("rc8", NULL)) tmprcret = 0x08;
     408                                        else if(rcret == getrcconfigint("rc9", NULL)) tmprcret = 0x09; 
     409                                        else if(rcret == getrcconfigint("rcright", NULL)) tmprcret = 0x0A;
     410                                        else if(rcret == getrcconfigint("rcleft", NULL)) tmprcret = 0x0B;
     411                                        else if(rcret == getrcconfigint("rcup", NULL)) tmprcret = 0x0C;
     412                                        else if(rcret == getrcconfigint("rcdown", NULL)) tmprcret = 0x0D;
     413                                        else if(rcret == getrcconfigint("rcok", NULL)) tmprcret = 0x0E;
     414                                        else if(rcret == getrcconfigint("rcmute", NULL)) tmprcret = 0x0F;       
     415                                        else if(rcret == getrcconfigint("rcpower", NULL)) tmprcret = 0x10;
     416                                        else if(rcret == getrcconfigint("rcgreen", NULL)) tmprcret = 0x11;
     417                                        else if(rcret == getrcconfigint("rcyellow", NULL)) tmprcret = 0x12;
     418                                        else if(rcret == getrcconfigint("rcred", NULL)) tmprcret = 0x13;               
     419                                        else if(rcret == getrcconfigint("rcblue", NULL)) tmprcret = 0x14;
     420                                        else if(rcret == getrcconfigint("rcchup", NULL)) tmprcret = 0x15;
     421                                        else if(rcret == getrcconfigint("rcchdown", NULL)) tmprcret = 0x16;
     422                                        else if(rcret == getrcconfigint("rchelp", NULL)) tmprcret = 0x17;
     423                                        //else if(rcret == getrcconfigint("rcdbox", NULL)) tmprcret = 0x18;
     424                                        else if(rcret == getrcconfigint("rctext", NULL)) tmprcret = 0x1F;
     425                                        else if(rcret == getrcconfigint("rcexit", NULL)) tmprcret = 0x1F;
     426                                       
     427                                        sendtuxtxt(tmprcret);
     428                                       
     429                                        if(rcret == getrcconfigint("rcexit", NULL)) break;
     430                                        if(rcret == getrcconfigint("rctext", NULL)) break;
     431                                }
     432                               
     433                                if(status.fdrctxt != -1)
     434                                {
     435                                        close(status.fdrctxt);
     436                                        status.fdrctxt = -1;
     437                                }
     438#else
     439                                system(tmpstr);
     440#endif                         
     441                                enablemanualblit();
    390442                                status.tuxtxt = 0;
    391443                                free(tmpstr); tmpstr = NULL; tmpnr = NULL;
Note: See TracChangeset for help on using the changeset viewer.