Improved 'New' and 'Open' interfaces. ('Open' dialog no longer includes

Starter images; 'New' now brings up a selection dialog showing 'Starter'
images and color choices.)
New images can be given solid background colors (which the 'Eraser' tool
erases to).
Improved --usage output.
Added support for "--papersize help" to list papersizes available via libpaper.
Some Magic tools that apply an affect once per click-and-drag no longer
recalculate the effect on pixels that have already been affected (until mouse
button is released and clicked again).
This commit is contained in:
William Kendrick 2007-07-24 18:20:17 +00:00
parent cd17a10a32
commit 6e827f67fe
9 changed files with 1280 additions and 296 deletions

View file

@ -120,8 +120,10 @@ void blocks_chalk_drip_linecb(void * ptr, int which,
x = (x / 4) * 4;
y = (y / 4) * 4;
for (yy = y - 8; yy < y + 8; yy = yy + 4)
if (!api->touched(x, y))
{
for (yy = y - 8; yy < y + 8; yy = yy + 4)
{
for (xx = x - 8; xx < x + 8; xx = xx + 4)
{
Uint32 pix[16];
@ -167,6 +169,7 @@ void blocks_chalk_drip_linecb(void * ptr, int which,
SDL_FillRect(canvas, &dest, SDL_MapRGB(canvas->format, r, g, b));
}
}
}
}
else if (which == TOOL_CHALK)