Changeset 3756912 in mainline


Ignore:
Timestamp:
2006-06-02T16:42:56Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e1c4849
Parents:
a805c24
Message:

Console sends its size now.

Location:
console
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • console/console.c

    ra805c24 r3756912  
    249249        ipc_call_t call;
    250250        int consnum;
    251         ipcarg_t arg1;
     251        ipcarg_t arg1, arg2;
    252252
    253253        if ((consnum = find_free_connection()) == CONSOLE_COUNT) {
     
    265265        while (1) {
    266266                callid = async_get_call(&call);
     267                arg1 = arg2 = 0;
    267268                switch (IPC_GET_METHOD(call)) {
    268269                case IPC_M_PHONE_HUNGUP:
     
    286287                        screenbuffer_goto(&(connections[consnum].screenbuffer), IPC_GET_ARG1(call), IPC_GET_ARG2(call));
    287288                       
     289                        break;
     290                case CONSOLE_GETSIZE:
     291                        arg1 = fb_info.cols;
     292                        arg2 = fb_info.rows;
    288293                        break;
    289294
     
    304309                        break;
    305310                }
    306                 ipc_answer_fast(callid, 0, arg1, 0);
     311                ipc_answer_fast(callid, 0, arg1, arg2);
    307312        }
    308313}
  • console/console.h

    ra805c24 r3756912  
    3636#define CONSOLE_CLEAR   1028
    3737#define CONSOLE_GOTO    1029
     38#define CONSOLE_GETSIZE 1030
    3839
    3940#endif
Note: See TracChangeset for help on using the changeset viewer.