Merge branch 'master' of github.com:klange/osdev

This commit is contained in:
Kevin Lange 2012-02-17 01:21:18 -06:00
commit b8e966ac24

View File

@ -36,6 +36,12 @@ int main (int argc, char ** argv) {
printf("[drawlines] Window drawn for client[%d,%d,%d,%d]\n", left, top, width, height);
while (1) {
w_keyboard_t * kbd = poll_keyboard();
if (kbd != NULL) {
printf("[drawlines] got key '%c'\n", kbd->key);
free(kbd);
}
window_draw_line(wina, rand() % width, rand() % width, rand() % height, rand() % height, rgb(rand() % 255,rand() % 255,rand() % 255));
window_redraw_full(wina);
}