Changeset 15331


Ignore:
Timestamp:
04/20/12 01:22:33 (11 years ago)
Author:
nit
Message:

[titan] fix rgui

Location:
titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/rgui/rgui.h

    r15265 r15331  
    106106        }
    107107       
     108        //clear screen
     109        drawscreen(skin, 0);
    108110        if(textbox(_("Message"), _("Send remote box into standby ?"), _("OK"), getrcconfigint("rcok", NULL), _("EXIT"), getrcconfigint("rcexit", NULL), NULL, 0, NULL, 0, 600, 200, 0, 0) == 1)
    109111        {
    110                 tmpstr = (unsigned char*)getrcconfig("rcpower", NULL);
    111                 if(tmpstr != NULL)
    112                 {
    113                         memcpy(buf, tmpstr, strlen((char*)tmpstr));
    114                         ret = socksend(&sock, buf, 6, 1000 * 1000);
    115                         free(tmpstr); tmpstr = NULL;
    116                         memset(buf, 0, 10);
    117                         usleep(5000);
    118                 }
     112                memcpy(buf, "98989", 5);
     113                ret = socksend(&sock, buf, 6, 1000 * 1000);
     114                memset(buf, 0, 10);
     115                usleep(5000);
    119116        }
    120117
  • titan/titan/rguid.h

    r15143 r15331  
    4040                        debug(250, "got keycode %d\n", keycode);
    4141                       
    42                         if(status.standby == 0 && keycode == getrcconfigint("rcpower", NULL))
     42                        if(status.standby == 0 && keycode == 98989)
    4343                        {
    4444                                int i = 0;
Note: See TracChangeset for help on using the changeset viewer.