synfig.git
16 years agoPrevent lots of warnings like [_surface.h:68] declaration of 'typedef ...alpha_pen...
dooglus [Sat, 26 Jan 2008 03:37:41 +0000 (03:37 +0000)]
Prevent lots of warnings like [_surface.h:68] declaration of 'typedef ...alpha_pen<...> etl::surface<...>::alpha_pen' [_pen.h:320] changes meaning of 'alpha_pen' from '...alpha_pen<...>'.

git-svn-id: http://svn.voria.com/code@1495 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid the "deprecated or antiquated header" warning from g++ 4.3 by using <tr1/unorde...
dooglus [Sat, 26 Jan 2008 02:03:45 +0000 (02:03 +0000)]
Avoid the "deprecated or antiquated header" warning from g++ 4.3 by using <tr1/unordered_map> and <tr1/unordered_set> instead of <ext/hash_map> and <ext/hash_set> if they are available.

git-svn-id: http://svn.voria.com/code@1494 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warnings from g++ 4.3. Add 'todo' notes to check the grouping.
dooglus [Fri, 25 Jan 2008 18:18:19 +0000 (18:18 +0000)]
Avoid warnings from g++ 4.3.  Add 'todo' notes to check the grouping.

git-svn-id: http://svn.voria.com/code@1493 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warnings from g++ 4.3.
dooglus [Fri, 25 Jan 2008 18:11:51 +0000 (18:11 +0000)]
Avoid warnings from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1492 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warnings from g++ 4.3.
dooglus [Fri, 25 Jan 2008 18:11:04 +0000 (18:11 +0000)]
Avoid warnings from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1491 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix a bug found by g++ 4.3, and add a few comments.
dooglus [Fri, 25 Jan 2008 17:57:53 +0000 (17:57 +0000)]
Fix a bug found by g++ 4.3, and add a few comments.

git-svn-id: http://svn.voria.com/code@1490 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warning from g++ 4.3.
dooglus [Fri, 25 Jan 2008 17:28:53 +0000 (17:28 +0000)]
Avoid warning from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1489 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warning from g++ 4.3.
dooglus [Fri, 25 Jan 2008 17:28:09 +0000 (17:28 +0000)]
Avoid warning from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1488 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warning from g++ 4.3.
dooglus [Fri, 25 Jan 2008 16:22:47 +0000 (16:22 +0000)]
Avoid warning from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1487 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warning from g++ 4.3.
dooglus [Fri, 25 Jan 2008 16:21:19 +0000 (16:21 +0000)]
Avoid warning from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1486 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warnings from g++ 4.3.
dooglus [Fri, 25 Jan 2008 16:00:32 +0000 (16:00 +0000)]
Avoid warnings from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1485 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warnings from g++ 4.3.
dooglus [Fri, 25 Jan 2008 15:50:35 +0000 (15:50 +0000)]
Avoid warnings from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1484 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warnings from g++ 4.3.
dooglus [Fri, 25 Jan 2008 15:48:02 +0000 (15:48 +0000)]
Avoid warnings from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1483 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warnings from g++ 4.3.
dooglus [Fri, 25 Jan 2008 15:45:55 +0000 (15:45 +0000)]
Avoid warnings from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1482 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix a bug found by g++ 4.3, and comment out the method, because it's never used anyway
dooglus [Fri, 25 Jan 2008 15:41:45 +0000 (15:41 +0000)]
Fix a bug found by g++ 4.3, and comment out the method, because it's never used anyway

git-svn-id: http://svn.voria.com/code@1481 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warnings from g++ 4.3.
dooglus [Fri, 25 Jan 2008 14:33:46 +0000 (14:33 +0000)]
Avoid warnings from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1480 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warnings from g++ 4.3.
dooglus [Fri, 25 Jan 2008 14:26:17 +0000 (14:26 +0000)]
Avoid warnings from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1479 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix bugs found by g++ 4.3.
dooglus [Fri, 25 Jan 2008 14:22:57 +0000 (14:22 +0000)]
Fix bugs found by g++ 4.3.

git-svn-id: http://svn.voria.com/code@1478 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warning from g++ 4.3.
dooglus [Fri, 25 Jan 2008 14:21:57 +0000 (14:21 +0000)]
Avoid warning from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1477 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warning from g++ 4.3.
dooglus [Fri, 25 Jan 2008 14:20:12 +0000 (14:20 +0000)]
Avoid warning from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1476 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warning.
dooglus [Fri, 25 Jan 2008 14:15:47 +0000 (14:15 +0000)]
Avoid warning.

git-svn-id: http://svn.voria.com/code@1475 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warning.
dooglus [Fri, 25 Jan 2008 14:15:01 +0000 (14:15 +0000)]
Avoid warning.

git-svn-id: http://svn.voria.com/code@1474 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid warning.
dooglus [Fri, 25 Jan 2008 14:14:24 +0000 (14:14 +0000)]
Avoid warning.

git-svn-id: http://svn.voria.com/code@1473 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoPrevent warning from g++ 4.3.
dooglus [Fri, 25 Jan 2008 14:11:36 +0000 (14:11 +0000)]
Prevent warning from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1472 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoStop a warning from g++ 4.3, but add a 'todo' note that the code needs checking....
dooglus [Fri, 25 Jan 2008 14:03:59 +0000 (14:03 +0000)]
Stop a warning from g++ 4.3, but add a 'todo' note that the code needs checking.  It doesn't look right to me.

git-svn-id: http://svn.voria.com/code@1471 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agog++ 4.3 told me "time.h:65: warning: type qualifiers ignored on function return type...
dooglus [Fri, 25 Jan 2008 14:00:05 +0000 (14:00 +0000)]
g++ 4.3 told me "time.h:65: warning: type qualifiers ignored on function return type" so I removed the "const" from the return type of Time::epsilon_().

git-svn-id: http://svn.voria.com/code@1470 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid a warning from g++ 4.3.
dooglus [Fri, 25 Jan 2008 13:11:59 +0000 (13:11 +0000)]
Avoid a warning from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1469 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix a bug found by g++ 4.3.
dooglus [Fri, 25 Jan 2008 13:01:02 +0000 (13:01 +0000)]
Fix a bug found by g++ 4.3.

git-svn-id: http://svn.voria.com/code@1468 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix a bug found by g++ 4.3, and then commented out the fixed method because it's...
dooglus [Fri, 25 Jan 2008 12:54:09 +0000 (12:54 +0000)]
Fix a bug found by g++ 4.3, and then commented out the fixed method because it's never used anywhere anyway.

git-svn-id: http://svn.voria.com/code@1467 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix warnings and a bug found by g++ 4.3.
dooglus [Fri, 25 Jan 2008 12:49:39 +0000 (12:49 +0000)]
Fix warnings and a bug found by g++ 4.3.

git-svn-id: http://svn.voria.com/code@1466 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid a warning from g++ 4.3.
dooglus [Fri, 25 Jan 2008 12:44:45 +0000 (12:44 +0000)]
Avoid a warning from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1465 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid a warning from g++ 4.3.
dooglus [Fri, 25 Jan 2008 12:44:28 +0000 (12:44 +0000)]
Avoid a warning from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1464 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid a warning from g++ 4.3.
dooglus [Fri, 25 Jan 2008 12:29:39 +0000 (12:29 +0000)]
Avoid a warning from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1463 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid a warning from g++ 4.3.
dooglus [Fri, 25 Jan 2008 12:23:29 +0000 (12:23 +0000)]
Avoid a warning from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1462 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAvoid a warning from g++ 4.3.
dooglus [Fri, 25 Jan 2008 12:22:39 +0000 (12:22 +0000)]
Avoid a warning from g++ 4.3.

git-svn-id: http://svn.voria.com/code@1461 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix some FTBFS issues when compiling with GCC 4.3
pabs [Fri, 25 Jan 2008 10:20:02 +0000 (10:20 +0000)]
Fix some FTBFS issues when compiling with GCC 4.3

git-svn-id: http://svn.voria.com/code@1460 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd checkboxes to the toggleable entries in the view menu.
dooglus [Thu, 24 Jan 2008 22:27:19 +0000 (22:27 +0000)]
Add checkboxes to the toggleable entries in the view menu.

git-svn-id: http://svn.voria.com/code@1459 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoI missed a few layers that can be used with the 'transparent + straight blend' trick...
dooglus [Thu, 24 Jan 2008 17:20:29 +0000 (17:20 +0000)]
I missed a few layers that can be used with the 'transparent + straight blend' trick in the last commit.  That should be all now.

git-svn-id: http://svn.voria.com/code@1458 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoQuite a lot of the example canvases use the trick of blending a transparent shape...
dooglus [Thu, 24 Jan 2008 17:20:08 +0000 (17:20 +0000)]
Quite a lot of the example canvases use the trick of blending a transparent shape using blend method "straight", and relying on an old bug to mask just the pixels in the shape.  Now that "straight" blending no longer only applies to the pixels in the shape, but to the whole layer, this trick no longer works.  The example .sif files have been modified to no longer rely on the trick, but it's possible that other .sif files do use it, and so this change looks out for the trick and changes it to use a fully opaque shape with "alpha over" blending, which has the same effect.

git-svn-id: http://svn.voria.com/code@1457 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRemember separate default directories for opening and writing each of animations...
dooglus [Thu, 24 Jan 2008 11:00:15 +0000 (11:00 +0000)]
Remember separate default directories for opening and writing each of animations, images, sketches, rendered output, and "miscellaneous".

git-svn-id: http://svn.voria.com/code@1456 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoMake ETL-config a wrapper around pkg-config. Patch by Ralf Corsepius <rc040203@freene...
pabs [Thu, 24 Jan 2008 05:31:30 +0000 (05:31 +0000)]
Make ETL-config a wrapper around pkg-config. Patch by Ralf Corsepius <rc040203@freenet.de>

git-svn-id: http://svn.voria.com/code@1455 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUse alpha-over instead of a transparent "straight" blend method.
dooglus [Thu, 24 Jan 2008 01:23:45 +0000 (01:23 +0000)]
Use alpha-over instead of a transparent "straight" blend method.

git-svn-id: http://svn.voria.com/code@1454 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix for the updated straight blend method.
dooglus [Thu, 24 Jan 2008 01:23:38 +0000 (01:23 +0000)]
Fix for the updated straight blend method.

git-svn-id: http://svn.voria.com/code@1453 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoMore of the same.
dooglus [Thu, 24 Jan 2008 01:23:30 +0000 (01:23 +0000)]
More of the same.

git-svn-id: http://svn.voria.com/code@1452 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAnd again.
dooglus [Thu, 24 Jan 2008 01:07:55 +0000 (01:07 +0000)]
And again.

git-svn-id: http://svn.voria.com/code@1451 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoSame again - use alpha-over instead of a transparent+straight.
dooglus [Thu, 24 Jan 2008 01:05:37 +0000 (01:05 +0000)]
Same again - use alpha-over instead of a transparent+straight.

git-svn-id: http://svn.voria.com/code@1450 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUpdate to no longer rely on the 'straight' blend method failing to render some transp...
dooglus [Thu, 24 Jan 2008 00:50:31 +0000 (00:50 +0000)]
Update to no longer rely on the 'straight' blend method failing to render some transparent pixels.

git-svn-id: http://svn.voria.com/code@1449 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoPut the holes back in. This file used to rely on a bug in the 'straight' blend metho...
dooglus [Thu, 24 Jan 2008 00:44:28 +0000 (00:44 +0000)]
Put the holes back in.  This file used to rely on a bug in the 'straight' blend method.  Since 'straight' has now been fixed, use alpha-over instead to achieve the same result.

git-svn-id: http://svn.voria.com/code@1448 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix to allow dynamic parameters to work with Straight blends.
dooglus [Wed, 23 Jan 2008 23:32:16 +0000 (23:32 +0000)]
Fix to allow dynamic parameters to work with Straight blends.

git-svn-id: http://svn.voria.com/code@1447 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUse an appropriate blend method when blitting to the area around the clipped pastecanvas.
dooglus [Wed, 23 Jan 2008 21:14:34 +0000 (21:14 +0000)]
Use an appropriate blend method when blitting to the area around the clipped pastecanvas.

git-svn-id: http://svn.voria.com/code@1446 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't include (deprecated) in the deprecated blend method names - it makes the toolbo...
dooglus [Wed, 23 Jan 2008 21:14:26 +0000 (21:14 +0000)]
Don't include (deprecated) in the deprecated blend method names - it makes the toolbox window too wide.

git-svn-id: http://svn.voria.com/code@1445 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd 'alpha brighten' to the list of blend methods to be considered 'straight'.
dooglus [Wed, 23 Jan 2008 21:14:17 +0000 (21:14 +0000)]
Add 'alpha brighten' to the list of blend methods to be considered 'straight'.

git-svn-id: http://svn.voria.com/code@1444 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRe-enable the 'alpha brighten' and 'alpha darken' blend methods. Why were they hidde...
dooglus [Wed, 23 Jan 2008 21:14:08 +0000 (21:14 +0000)]
Re-enable the 'alpha brighten' and 'alpha darken' blend methods.  Why were they hidden before?  They're marked as 'deprecated', but why?

git-svn-id: http://svn.voria.com/code@1443 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoThe optimization of skipping the rendering of the layer's context only works for...
dooglus [Wed, 23 Jan 2008 21:13:59 +0000 (21:13 +0000)]
The optimization of skipping the rendering of the layer's context only works for straight rendering with amount=1, not for 'straight onto', and 'alpha brighten'.

git-svn-id: http://svn.voria.com/code@1442 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't show timing information for calls to LayerGroupTreeStore::rebuild() and LayerPa...
dooglus [Wed, 23 Jan 2008 20:24:29 +0000 (20:24 +0000)]
Don't show timing information for calls to LayerGroupTreeStore::rebuild() and LayerParamTreeStore::rebuild().

git-svn-id: http://svn.voria.com/code@1441 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't show the 'delete' and 'really delete' debug messages when hiding a menu.
dooglus [Wed, 23 Jan 2008 20:24:16 +0000 (20:24 +0000)]
Don't show the 'delete' and 'really delete' debug messages when hiding a menu.

git-svn-id: http://svn.voria.com/code@1440 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUse Color::is_straight(). Also, make sure we set the blend method of the newly encap...
dooglus [Wed, 23 Jan 2008 20:24:06 +0000 (20:24 +0000)]
Use Color::is_straight().  Also, make sure we set the blend method of the newly encapsulated layer to be STRAIGHT, since it may be STRAIGHT_ONTO or similar, which causes us to see an empty bounding box for the pastecanvas, and for the layer never to be rendered.

git-svn-id: http://svn.voria.com/code@1439 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUse Color::is_straight(). Also, re-enable the optimization for straight blending...
dooglus [Wed, 23 Jan 2008 20:23:57 +0000 (20:23 +0000)]
Use Color::is_straight().  Also, re-enable the optimization for straight blending when amount==1, but only for layers which don't need to see their context.

git-svn-id: http://svn.voria.com/code@1438 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoUse Color::is_straight().
dooglus [Wed, 23 Jan 2008 20:23:47 +0000 (20:23 +0000)]
Use Color::is_straight().

git-svn-id: http://svn.voria.com/code@1437 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDefine new static member Color::is_straight(BlendMethod) to determine whether a blend...
dooglus [Wed, 23 Jan 2008 19:58:41 +0000 (19:58 +0000)]
Define new static member Color::is_straight(BlendMethod) to determine whether a blend method is 'straight' or not (ie. 'straight', 'straight onto').  Possibly one of alpha_{lighten|darken} will need adding to this as well.

git-svn-id: http://svn.voria.com/code@1436 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFirst step towards fixing 'straight onto' blending.
dooglus [Wed, 23 Jan 2008 19:58:30 +0000 (19:58 +0000)]
First step towards fixing 'straight onto' blending.

git-svn-id: http://svn.voria.com/code@1435 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoOnly convert 'straight' to 'composite' when updating a canvas from pre 0.3 to 0.3...
dooglus [Wed, 23 Jan 2008 18:02:46 +0000 (18:02 +0000)]
Only convert 'straight' to 'composite' when updating a canvas from pre 0.3 to 0.3 for layers which don't transform the layers under them.

git-svn-id: http://svn.voria.com/code@1434 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoA few more changes to get the studio graphics to render correctly with the recent...
dooglus [Wed, 23 Jan 2008 17:41:33 +0000 (17:41 +0000)]
A few more changes to get the studio graphics to render correctly with the recent fixes to the 'straight' blend method.

git-svn-id: http://svn.voria.com/code@1433 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoHopefully this will work better. It only makes a temporary encapsulation around...
dooglus [Wed, 23 Jan 2008 17:41:25 +0000 (17:41 +0000)]
Hopefully this will work better.  It only makes a temporary encapsulation around layers which use straight blend and which don't need to see their own context.

git-svn-id: http://svn.voria.com/code@1432 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDefine reads_context() in the class of each layer that does need to be able to see...
dooglus [Wed, 23 Jan 2008 17:41:02 +0000 (17:41 +0000)]
Define reads_context() in the class of each layer that does need to be able to see its own context.

git-svn-id: http://svn.voria.com/code@1431 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd new method Layer::reads_context() which returns true iff the layer needs to be...
dooglus [Wed, 23 Jan 2008 17:40:47 +0000 (17:40 +0000)]
Add new method Layer::reads_context() which returns true iff the layer needs to be able to see its context (underlying layers) to work.

git-svn-id: http://svn.voria.com/code@1430 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoChanges to make the studio/images files render correctly again.
dooglus [Wed, 23 Jan 2008 14:44:38 +0000 (14:44 +0000)]
Changes to make the studio/images files render correctly again.

git-svn-id: http://svn.voria.com/code@1429 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoImprove this code to allow layers like 'blur' to work.
dooglus [Wed, 23 Jan 2008 14:44:29 +0000 (14:44 +0000)]
Improve this code to allow layers like 'blur' to work.

git-svn-id: http://svn.voria.com/code@1428 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd operator != too.
dooglus [Wed, 23 Jan 2008 14:44:20 +0000 (14:44 +0000)]
Add operator != too.

git-svn-id: http://svn.voria.com/code@1427 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd operator== for rectangles.
dooglus [Wed, 23 Jan 2008 14:44:12 +0000 (14:44 +0000)]
Add operator== for rectangles.

git-svn-id: http://svn.voria.com/code@1426 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDisabled an optimization that was being too enthusiastic. It's not always safe to...
dooglus [Wed, 23 Jan 2008 14:44:03 +0000 (14:44 +0000)]
Disabled an optimization that was being too enthusiastic.  It's not always safe to skip rendering the context for straight blends with amount=1 - the blur layer for example outputs a blurred version of its context even when using the straight blend method.

git-svn-id: http://svn.voria.com/code@1425 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoThe "Spherize" layer doesn't need to inherit from Layer_Composite. This fixes the...
dooglus [Wed, 23 Jan 2008 14:43:50 +0000 (14:43 +0000)]
The "Spherize" layer doesn't need to inherit from Layer_Composite.  This fixes the layer, which was broken by r1422.

git-svn-id: http://svn.voria.com/code@1424 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoEdit in the svn revision number for the canvas 0.3 change.
dooglus [Tue, 22 Jan 2008 13:44:59 +0000 (13:44 +0000)]
Edit in the svn revision number for the canvas 0.3 change.

git-svn-id: http://svn.voria.com/code@1423 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFirst attempt at fixing the 'straight' blend method. It now applies to the whole...
dooglus [Tue, 22 Jan 2008 13:42:55 +0000 (13:42 +0000)]
First attempt at fixing the 'straight' blend method.  It now applies to the whole layer, rather than just the pixels modified by the layer.  Loading old canvases that use 'straight' will convert the blend method to 'composite' for all layers other than PasteCanvas, since the old 'straight' worked much like composite for them.  The 'straight onto' blend method still needs work.

git-svn-id: http://svn.voria.com/code@1422 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFollowing the previous commit, there's no need to walk up the canvas tree to find...
dooglus [Tue, 22 Jan 2008 12:31:05 +0000 (12:31 +0000)]
Following the previous commit, there's no need to walk up the canvas tree to find the root when checking the canvas version.

git-svn-id: http://svn.voria.com/code@1421 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoIf a canvas in a .sif file doesn't specify its version, inherit the version of its...
dooglus [Tue, 22 Jan 2008 12:30:56 +0000 (12:30 +0000)]
If a canvas in a .sif file doesn't specify its version, inherit the version of its parent.

git-svn-id: http://svn.voria.com/code@1420 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoMake a note to investigate blendfunc_ALPHA_BRIGHTEN. It seems to be multiplying...
dooglus [Tue, 22 Jan 2008 12:30:47 +0000 (12:30 +0000)]
Make a note to investigate blendfunc_ALPHA_BRIGHTEN.  It seems to be multiplying the wrong thing by 'amount'.

git-svn-id: http://svn.voria.com/code@1419 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoNumber the blend functions in the array.
dooglus [Tue, 22 Jan 2008 12:30:38 +0000 (12:30 +0000)]
Number the blend functions in the array.

git-svn-id: http://svn.voria.com/code@1418 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoPass the current 'time' value when optimizing layers. We're going to need it in...
dooglus [Tue, 22 Jan 2008 12:30:25 +0000 (12:30 +0000)]
Pass the current 'time' value when optimizing layers.  We're going to need it in a following commit.

git-svn-id: http://svn.voria.com/code@1417 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't show "STATE NORMAL:..." every time the normal tool receives a new event.
dooglus [Tue, 22 Jan 2008 12:30:16 +0000 (12:30 +0000)]
Don't show "STATE NORMAL:..." every time the normal tool receives a new event.

git-svn-id: http://svn.voria.com/code@1416 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoThere's no need to use a new variable here.
dooglus [Tue, 22 Jan 2008 12:30:07 +0000 (12:30 +0000)]
There's no need to use a new variable here.

git-svn-id: http://svn.voria.com/code@1415 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't accept illegal values for 'blend_method'. Use 'Composite' instead.
dooglus [Mon, 21 Jan 2008 17:02:51 +0000 (17:02 +0000)]
Don't accept illegal values for 'blend_method'.  Use 'Composite' instead.

git-svn-id: http://svn.voria.com/code@1414 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDeclare the paste_canvas pointing in the block that uses it to limit its scope.
dooglus [Mon, 21 Jan 2008 17:02:42 +0000 (17:02 +0000)]
Declare the paste_canvas pointing in the block that uses it to limit its scope.

git-svn-id: http://svn.voria.com/code@1413 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't use the optimization of using STRAIGHT blends instead of COMPOSITE when SYNFIG_...
dooglus [Mon, 21 Jan 2008 17:02:32 +0000 (17:02 +0000)]
Don't use the optimization of using STRAIGHT blends instead of COMPOSITE when SYNFIG_CLIP_PASTECANVAS isn't defined, because it causes incorrect rendering in, for example, the 'examples/pirates.sifz' file.

git-svn-id: http://svn.voria.com/code@1412 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDocument the canvas versions.
dooglus [Mon, 21 Jan 2008 01:33:37 +0000 (01:33 +0000)]
Document the canvas versions.

git-svn-id: http://svn.voria.com/code@1411 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't display the frame efficiency.
dooglus [Mon, 21 Jan 2008 01:18:38 +0000 (01:18 +0000)]
Don't display the frame efficiency.

git-svn-id: http://svn.voria.com/code@1410 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoAdd a comment giving a .sif file that shows why 'SYNFIG_CLIP_PASTECANVAS' is needed.
dooglus [Mon, 21 Jan 2008 01:10:54 +0000 (01:10 +0000)]
Add a comment giving a .sif file that shows why 'SYNFIG_CLIP_PASTECANVAS' is needed.

git-svn-id: http://svn.voria.com/code@1409 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoTidying.
dooglus [Mon, 21 Jan 2008 01:10:46 +0000 (01:10 +0000)]
Tidying.

git-svn-id: http://svn.voria.com/code@1408 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFixed a typo.
dooglus [Mon, 21 Jan 2008 01:10:37 +0000 (01:10 +0000)]
Fixed a typo.

git-svn-id: http://svn.voria.com/code@1407 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRearranged a little. The functionality shouldn't have changed.
dooglus [Mon, 21 Jan 2008 01:10:29 +0000 (01:10 +0000)]
Rearranged a little.  The functionality shouldn't have changed.

git-svn-id: http://svn.voria.com/code@1406 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoGive an example .sif file to explain why the 'SYNFIG_OPTIMIZE_PASTE_CANVAS' code...
dooglus [Mon, 21 Jan 2008 01:10:20 +0000 (01:10 +0000)]
Give an example .sif file to explain why the 'SYNFIG_OPTIMIZE_PASTE_CANVAS' code is #ifdef'ed out.

git-svn-id: http://svn.voria.com/code@1405 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRemove more debugging prints.
dooglus [Mon, 21 Jan 2008 01:10:11 +0000 (01:10 +0000)]
Remove more debugging prints.

git-svn-id: http://svn.voria.com/code@1404 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoStop 3 more messages.
dooglus [Mon, 21 Jan 2008 01:10:02 +0000 (01:10 +0000)]
Stop 3 more messages.

git-svn-id: http://svn.voria.com/code@1403 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoStop the 'canvas_view_changed' messages.
dooglus [Mon, 21 Jan 2008 01:09:52 +0000 (01:09 +0000)]
Stop the 'canvas_view_changed' messages.

git-svn-id: http://svn.voria.com/code@1402 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoTidying. No functional change.
dooglus [Mon, 21 Jan 2008 01:09:44 +0000 (01:09 +0000)]
Tidying.  No functional change.

git-svn-id: http://svn.voria.com/code@1401 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoDon't avoid not using negated macro names, because they can be confusing. ie. use...
dooglus [Mon, 21 Jan 2008 01:09:35 +0000 (01:09 +0000)]
Don't avoid not using negated macro names, because they can be confusing.  ie. use "#ifdef SYNFIG_CLIP_PASTECANVAS" rather than "#ifndef SYNFIG_NO_CLIP".

git-svn-id: http://svn.voria.com/code@1400 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoChange the expected results to match the new actual results, now that angles no longe...
dooglus [Fri, 18 Jan 2008 12:33:56 +0000 (12:33 +0000)]
Change the expected results to match the new actual results, now that angles no longer wrap at 360 degrees.

git-svn-id: http://svn.voria.com/code@1399 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoRename "Dialogs" to "Panels" for the dockable windows.
dooglus [Thu, 17 Jan 2008 18:09:04 +0000 (18:09 +0000)]
Rename "Dialogs" to "Panels" for the dockable windows.

git-svn-id: http://svn.voria.com/code@1398 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoFix 1695735: don't treat the required values of command line flags as flags themselves.
dooglus [Thu, 17 Jan 2008 17:56:54 +0000 (17:56 +0000)]
Fix 1695735: don't treat the required values of command line flags as flags themselves.

git-svn-id: http://svn.voria.com/code@1397 1f10aa63-cdf2-0310-b900-c93c546f37ac

16 years agoMove the knowledge about which flags require an extra value into a separate function...
dooglus [Thu, 17 Jan 2008 17:56:45 +0000 (17:56 +0000)]
Move the knowledge about which flags require an extra value into a separate function.  We're going to need it to fix bug #1695735.

git-svn-id: http://svn.voria.com/code@1396 1f10aa63-cdf2-0310-b900-c93c546f37ac