Changeset 085bd54 in mainline for tetris/screen.c
- Timestamp:
- 2006-06-06T15:16:08Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63bb83e
- Parents:
- d7eafd8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tetris/screen.c
rd7eafd8 r085bd54 81 81 static void set_style(int fgcolor, int bgcolor) 82 82 { 83 send_call_2(con_phone, CONSOLE_SET_STYLE, fgcolor, bgcolor);83 async_msg_2(con_phone, CONSOLE_SET_STYLE, fgcolor, bgcolor); 84 84 } 85 85 … … 97 97 void clear_screen(void) 98 98 { 99 send_call(con_phone, CONSOLE_CLEAR, 0);99 async_msg(con_phone, CONSOLE_CLEAR, 0); 100 100 moveto(0,0); 101 101 } … … 109 109 110 110 resume_normal(); 111 send_call(con_phone, CONSOLE_CLEAR, 0);111 async_msg(con_phone, CONSOLE_CLEAR, 0); 112 112 curscore = -1; 113 113 memset((char *)curscreen, 0, sizeof(curscreen)); … … 121 121 { 122 122 con_phone = get_fd_phone(1); 123 send_call(con_phone, CONSOLE_CURSOR_VISIBILITY, 0);123 async_msg(con_phone, CONSOLE_CURSOR_VISIBILITY, 0); 124 124 resume_normal(); 125 125 scr_clear(); … … 128 128 void moveto(int r, int c) 129 129 { 130 send_call_2(con_phone, CONSOLE_GOTO, r, c);130 async_msg_2(con_phone, CONSOLE_GOTO, r, c); 131 131 } 132 132 133 133 static void fflush(void) 134 134 { 135 send_call(con_phone, CONSOLE_FLUSH, 0);135 async_msg(con_phone, CONSOLE_FLUSH, 0); 136 136 } 137 137 … … 140 140 static int get_display_size(winsize_t *ws) 141 141 { 142 return sync_send_2(con_phone, CONSOLE_GETSIZE, 0, 0, &ws->ws_row, &ws->ws_col);142 return async_req_2(con_phone, CONSOLE_GETSIZE, 0, 0, &ws->ws_row, &ws->ws_col); 143 143 } 144 144
Note:
See TracChangeset
for help on using the changeset viewer.