349
342
water->last_x = event->x / widget->allocation.width;
350
343
water->last_y = event->y / widget->allocation.height;
354
345
erase = (event->button != 1);
355
346
/* FIXME: (event->source == GDK_SOURCE_ERASER) */
357
351
add_pigment (water, erase, water->last_x, water->last_y, 0.05);
359
353
water->motion_time = event->time;