Changeset 9996ed5 in mainline for tetris/screen.c
- Timestamp:
- 2006-06-05T20:40:44Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e9073f2
- Parents:
- 0aa024b1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tetris/screen.c
r0aa024b1 r9996ed5 94 94 } 95 95 96 97 void clear_screen(void) 98 { 99 send_call(con_phone, CONSOLE_CLEAR, 0); 100 moveto(0,0); 101 } 102 96 103 /* 97 104 * Clear the screen, forgetting the current contents in the process. … … 119 126 } 120 127 121 staticvoid moveto(int r, int c)128 void moveto(int r, int c) 122 129 { 123 130 send_call_2(con_phone, CONSOLE_GOTO, r, c); … … 129 136 } 130 137 131 struct winsize { 132 ipcarg_t ws_row; 133 ipcarg_t ws_col; 134 }; 135 136 static int get_display_size(struct winsize *ws) 138 winsize_t winsize; 139 140 static int get_display_size(winsize_t *ws) 137 141 { 138 142 return sync_send_2(con_phone, CONSOLE_GETSIZE, 0, 0, &ws->ws_row, &ws->ws_col); … … 154 158 scr_set(void) 155 159 { 156 struct winsizews;160 winsize_t ws; 157 161 158 162 Rows = 0, Cols = 0;
Note:
See TracChangeset
for help on using the changeset viewer.