Finished flower tool.

Added foam tool.
Cleanup.
This commit is contained in:
William Kendrick 2007-07-11 06:20:05 +00:00
parent f8249b1e4d
commit 1f0d12ba91
17 changed files with 840 additions and 92 deletions

View file

@ -103,10 +103,10 @@ void tint_drag(magic_api * api, int which, SDL_Surface * canvas,
if (ox > x) { int tmp = ox; ox = x; x = tmp; }
if (oy > y) { int tmp = oy; oy = y; y = tmp; }
update_rect->x = x - 16;
update_rect->y = y - 16;
update_rect->w = (ox + 16) - update_rect->x;
update_rect->h = (oy + 16) - update_rect->y;
update_rect->x = ox - 16;
update_rect->y = oy - 16;
update_rect->w = (x + 16) - update_rect->x;
update_rect->h = (y + 16) - update_rect->y;
api->playsound(tint_snd, (x * 255) / canvas->w, 255);
}