|
|
@ -37,7 +37,7 @@ struct smoke { |
|
|
|
struct window *window; |
|
|
|
struct window *window; |
|
|
|
struct widget *widget; |
|
|
|
struct widget *widget; |
|
|
|
int width, height; |
|
|
|
int width, height; |
|
|
|
int offset, current; |
|
|
|
int current; |
|
|
|
uint32_t time; |
|
|
|
uint32_t time; |
|
|
|
struct { float *d, *u, *v; } b[2]; |
|
|
|
struct { float *d, *u, *v; } b[2]; |
|
|
|
}; |
|
|
|
}; |
|
|
@ -295,7 +295,6 @@ int main(int argc, char *argv[]) |
|
|
|
window_set_buffer_type(smoke.window, WINDOW_BUFFER_TYPE_SHM); |
|
|
|
window_set_buffer_type(smoke.window, WINDOW_BUFFER_TYPE_SHM); |
|
|
|
clock_gettime(CLOCK_MONOTONIC, &ts); |
|
|
|
clock_gettime(CLOCK_MONOTONIC, &ts); |
|
|
|
srandom(ts.tv_nsec); |
|
|
|
srandom(ts.tv_nsec); |
|
|
|
smoke.offset = random(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
smoke.current = 0; |
|
|
|
smoke.current = 0; |
|
|
|
size = smoke.height * smoke.width; |
|
|
|
size = smoke.height * smoke.width; |
|
|
|