|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T w
Length: 931 (0x3a3) Types: TextFile Names: »window.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/Sun/Tetris/window.c«
#include "defs.h" #include <sys/types.h> #include <sys/timeb.h> init_timer() { me = (Notify_client *) & my_client_object; } start_timer() { struct itimerval drop_time; int level; level = 50 - (rows / 10); if (level < 0) level = 0; drop_time.it_interval.tv_usec = 100000 + level * 2000; drop_time.it_interval.tv_sec = 0; drop_time.it_value.tv_usec = 10; drop_time.it_value.tv_sec = 0; notify_set_itimer_func(me, drop_block, ITIMER_REAL, &drop_time, ITIMER_NULL); } stop_timer() { notify_set_itimer_func(me, drop_block, ITIMER_REAL, ITIMER_NULL, ITIMER_NULL); } set_events() { window_set(canvas, WIN_CONSUME_PICK_EVENTS, WIN_NO_EVENTS, WIN_MOUSE_BUTTONS, WIN_ASCII_EVENTS, 0, 0); } clear_events() { window_set(canvas, WIN_CONSUME_PICK_EVENT, WIN_NO_EVENTS, 0); }