Changeset 9996ed5 in mainline for tetris/screen.c


Ignore:
Timestamp:
2006-06-05T20:40:44Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e9073f2
Parents:
0aa024b1
Message:

Tetris has now a new menu.
Hiscore table added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tetris/screen.c

    r0aa024b1 r9996ed5  
    9494}
    9595
     96
     97void clear_screen(void)
     98{
     99        send_call(con_phone, CONSOLE_CLEAR, 0);
     100        moveto(0,0);
     101}
     102
    96103/*
    97104 * Clear the screen, forgetting the current contents in the process.
     
    119126}
    120127
    121 static void moveto(int r, int c)
     128void moveto(int r, int c)
    122129{
    123130        send_call_2(con_phone, CONSOLE_GOTO, r, c);
     
    129136}
    130137
    131 struct winsize {
    132         ipcarg_t ws_row;
    133         ipcarg_t ws_col;
    134 };
    135 
    136 static int get_display_size(struct winsize *ws)
     138winsize_t winsize;
     139
     140static int get_display_size(winsize_t *ws)
    137141{
    138142        return sync_send_2(con_phone, CONSOLE_GETSIZE, 0, 0, &ws->ws_row, &ws->ws_col);
     
    154158scr_set(void)
    155159{
    156         struct winsize ws;
     160        winsize_t ws;
    157161
    158162        Rows = 0, Cols = 0;
Note: See TracChangeset for help on using the changeset viewer.