Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1590 → Rev 1589

/uspace/trunk/tetris/screen.c
93,13 → 93,6
set_style(0xe0e0e0, 0);
}
 
 
void clear_screen(void)
{
send_call(con_phone, CONSOLE_CLEAR, 0);
moveto(0,0);
}
 
/*
* Clear the screen, forgetting the current contents in the process.
*/
125,7 → 118,7
scr_clear();
}
 
void moveto(int r, int c)
static void moveto(int r, int c)
{
send_call_2(con_phone, CONSOLE_GOTO, r, c);
}
135,9 → 128,12
send_call(con_phone, CONSOLE_FLUSH, 0);
}
 
winsize_t winsize;
struct winsize {
ipcarg_t ws_row;
ipcarg_t ws_col;
};
 
static int get_display_size(winsize_t *ws)
static int get_display_size(struct winsize *ws)
{
return sync_send_2(con_phone, CONSOLE_GETSIZE, 0, 0, &ws->ws_row, &ws->ws_col);
}
157,7 → 153,7
void
scr_set(void)
{
winsize_t ws;
struct winsize ws;
 
Rows = 0, Cols = 0;
if (get_display_size(&ws) == 0) {