Search:

Type: Posts; User: zradu

Search: Search took 0.00 seconds.

  1. Replies
    12
    Views
    2,104

    Hello, Yes, "cmd->curmenupos" changing inside...

    Hello,
    Yes, "cmd->curmenupos" changing inside the loop

    MOVE UP:

    cmd->curmenupos = (cmd->curmenupos + cmd->curmenusize - 1) % (cmd->curmenusize);
    MOVE DOWN:

    cmd->curmenupos =...
  2. Replies
    12
    Views
    2,104

    perhaps a more elegant solution is what I'm...

    perhaps a more elegant solution is what I'm looking for.

    This solution have a problem:

    Example:

    Number of stations in data base = 75

    1 If cursor in in first line of MENU and I wont to...
  3. Replies
    12
    Views
    2,104

    Sorry, in my first post is rong code: #define...

    Sorry, in my first post is rong code:

    #define NUM_STATIONS 15
    must be

    #define MENU_SIZE 15

    the loop must run for all number of stations from database: num_stations = stations in data base,...
  4. Replies
    12
    Views
    2,104

    I try to optimize from this: ...

    I try to optimize from this:



    #define MENU_SIZE 15

    int i;
    char text[ 32 ];
    const int num_stations = station_get_num_stations( cmd->station );
  5. Replies
    12
    Views
    2,104

    how to optimize "for" statement

    I have this code and I wont to optimize them:

    here is a scrolling menu with max 15 line and loop must run for all station from database ( num_stations = number of stations from data base ).

    ...
  6. How to move up or down Item in List using C and GList (Doubly-Linked Lists) code

    How to move up or down Item in List using C and GList (Doubly-Linked Lists) code

    In abstraction I know what should be done, but in practice not handle it.

    For down button:

    When select a List...
  7. Scroll up and down line by line (from buffer) in c

    I write code to extract data from xmltv listings and display them perchannel in page with 15 line. How to make to scroll up and down line by line in page (from buffer) until last line information...
  8. Replies
    1
    Views
    716

    Group list by days

    int epg_show_perchannel( tv_osd_t* osd, int page, station_mgr_t *stationmgr, xmltv_t *xmltv, int channel )
    {
    if (!page)
    return 0;
    if ( xmltv ){
    const int buf_length =...
Results 1 to 8 of 8