Changeset 838c48e in mainline for console/console.c


Ignore:
Timestamp:
2006-06-02T09:25:00Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
49d072e
Parents:
1180a88e
Message:

Fix cursor position.
Do not rewrite active console on switch to it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • console/console.c

    r1180a88e r838c48e  
    140140        scr->position_x = scr->position_x % scr->size_x;
    141141        scr->position_y = scr->position_y  % scr->size_y;
     142        ipc_call_async_2(fb_info.phone, FB_CURSOR_GOTO, scr->position_y, scr->position_x, NULL, NULL);
    142143       
    143144}
     
    173174                        if ((c >= '1') && (c < '1' + CONSOLE_COUNT)) {
    174175                                /*FIXME: draw another console content from buffer */
    175                                 if (c - KBD_KEY_F1 == active_console)
     176                                if (c - '1' == active_console)
    176177                                                break;
    177178                                active_console = c - '1';
     
    187188                                                        ipc_call_async_3(fb_info.phone, FB_PUTCHAR, d, j, i, NULL, NULL);
    188189                                        }
     190
    189191                                ipc_call_async_2(fb_info.phone, FB_CURSOR_GOTO, conn->screenbuffer.position_y, conn->screenbuffer.position_x, NULL, NULL);
    190192                                ipc_call_async(fb_info.phone, FB_CURSOR_VISIBILITY, 1, NULL, NULL);
Note: See TracChangeset for help on using the changeset viewer.