synfig.git
16 years agoMore unused parameters - in ETL this time.
dooglus [Sun, 27 Jan 2008 15:29:47 +0000 (15:29 +0000)]
More unused parameters - in ETL this time.

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

16 years agoHonor the "amount" parameter of the 'duplicate' layer.
dooglus [Sun, 27 Jan 2008 13:03:55 +0000 (13:03 +0000)]
Honor the "amount" parameter of the 'duplicate' layer.

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

16 years agoOops - missed one in the last commit.
dooglus [Sun, 27 Jan 2008 12:20:13 +0000 (12:20 +0000)]
Oops - missed one in the last commit.

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

16 years agoPrevent more 'unused parameter' warnings - compiling without debug enabled disables...
dooglus [Sun, 27 Jan 2008 12:16:51 +0000 (12:16 +0000)]
Prevent more 'unused parameter' warnings - compiling without debug enabled disables the assert() checks which leads to more parameters being unused.

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

16 years agoPrevent all remaining 'unused parameter' warnings when compiling with debug enabled.
dooglus [Sun, 27 Jan 2008 12:12:27 +0000 (12:12 +0000)]
Prevent all remaining 'unused parameter' warnings when compiling with debug enabled.

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

16 years agoThe same as r1506 but for studio as well. r1506 only addressed the problem for core.
dooglus [Sun, 27 Jan 2008 11:54:10 +0000 (11:54 +0000)]
The same as r1506 but for studio as well.  r1506 only addressed the problem for core.

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

16 years agoFix a warning about returning a reference to a temporary by introducing a memory...
dooglus [Sun, 27 Jan 2008 11:45:26 +0000 (11:45 +0000)]
Fix a warning about returning a reference to a temporary by introducing a memory leak instead!  I don't think the code should ever be used though, and have added a warning to indicate if it is.

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

16 years agoDon't use the '-Wno-unused-parameter' flag by default.
dooglus [Sun, 27 Jan 2008 11:31:20 +0000 (11:31 +0000)]
Don't use the '-Wno-unused-parameter' flag by default.

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

16 years agoCheck that unordered_map<int,int>::const_iterator is declared before deciding to...
dooglus [Sun, 27 Jan 2008 11:05:29 +0000 (11:05 +0000)]
Check that unordered_map<int,int>::const_iterator is declared before deciding to use <tr1/unordered_map>.  Similarly for unordered_set.

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

16 years agoMake the keyframe panel's description column sortable.
dooglus [Sun, 27 Jan 2008 10:13:42 +0000 (10:13 +0000)]
Make the keyframe panel's description column sortable.

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

16 years agoAdd a KeyframeTreeStore::description_sorter() to go with the time_sorter().
dooglus [Sun, 27 Jan 2008 10:13:32 +0000 (10:13 +0000)]
Add a KeyframeTreeStore::description_sorter() to go with the time_sorter().

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

16 years agoPrevent a warning saying "not enough variable arguments to fit a sentinel". But...
dooglus [Sat, 26 Jan 2008 12:37:43 +0000 (12:37 +0000)]
Prevent a warning saying "not enough variable arguments to fit a sentinel".  But why was this KeyframeTreeStore_Class class being used at all?  Looks like some unfinished work here.  I've commented it out - does that affect anything?

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

16 years agoFix the error about being unable to parse the grid_size metadata. It was previously...
dooglus [Sat, 26 Jan 2008 11:51:32 +0000 (11:51 +0000)]
Fix the error about being unable to parse the grid_size metadata.  It was previously only complaining if the grid_size wasn't specified, or was specified to be empty.

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

16 years agoDon't warn "Action CandidateList is empty!" - it happens a lot, and isn't a problem.
dooglus [Sat, 26 Jan 2008 11:46:47 +0000 (11:46 +0000)]
Don't warn "Action CandidateList is empty!" - it happens a lot, and isn't a problem.

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

16 years agoDisable the "Adjust: connecting to child signals" message.
dooglus [Sat, 26 Jan 2008 11:46:04 +0000 (11:46 +0000)]
Disable the "Adjust: connecting to child signals" message.

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

16 years agoDisable the "Entered Normal State" message.
dooglus [Sat, 26 Jan 2008 11:44:39 +0000 (11:44 +0000)]
Disable the "Entered Normal State" message.

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

16 years agoDisable profiler in childrentreestore.cpp.
dooglus [Sat, 26 Jan 2008 11:43:44 +0000 (11:43 +0000)]
Disable profiler in childrentreestore.cpp.

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

16 years agoRemove the -fpermissive flag - we no longer need it.
dooglus [Sat, 26 Jan 2008 11:06:38 +0000 (11:06 +0000)]
Remove the -fpermissive flag - we no longer need it.

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

16 years agoPrevent warning from g++ 4.3: [ETL/_smach.h:171] declaration of 'typedef class etl...
dooglus [Sat, 26 Jan 2008 10:49:39 +0000 (10:49 +0000)]
Prevent warning from g++ 4.3: [ETL/_smach.h:171] declaration of 'typedef class etl::smach<CON, K, M>::event_def<T> etl::smach<CON, K, M>::state<T>::event_def' [ETL/_smach.h:102] changes meaning of 'event_def' from 'class etl::smach<CON, K, M>::event_def<T>'.

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

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