Commit Graph

10 Commits

Author SHA1 Message Date
Rene Engelhard
5ce76a9b8c fix build failure (must be pos1--, not i--) 2010-09-28 22:08:13 +02:00
NeilBrown
bb58dbf969 Improve randomisation in 'dissolve' transition.
The loop for randomizing a list in the dissolve transition is poor.

It randomly chooses two element and swaps them, and does this N/2 times.
Thus a total of N elements are moved.
It is probable that several elements will be swapped multiple times,
leaving it probable that several other elements will not be swapped at all.

This fact is quite visible when transitioning between two very different
slides (e.g. 2 photos).  While there is a lot of randomness, there is a
clearly perceptible top-to-bottom 'wipe' happening at the same time.

So change the loop to provide true randomness.
We randomly choose an element for the last position.
Then randomly choose one of the remaining elements for the second
last position, etc.

Signed-off-by: NeilBrown <neilb@suse.de>
2010-09-28 15:12:03 +01:00
Jens-Heiner Rechtien
9e19ff00c7 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Armin Le Grand
602841adb3 #i97509# continued matrix tooling and adapting the usages now to all the ooo code 2009-09-22 18:14:05 +02:00
Rüdiger Timm
d4147f4c69 INTEGRATION: CWS changefileheader (1.6.74); FILE MERGED
2008/03/31 14:00:25 rt 1.6.74.1: #i87441# Change license header to LPGL v3.
2008-04-11 00:09:17 +00:00
Kurt Zenker
dd5e2eabe9 INTEGRATION: CWS presfixes09 (1.4.18); FILE MERGED
2006/10/18 19:59:01 thb 1.4.18.3: RESYNC: (1.4-1.5); FILE MERGED
2006/04/24 13:25:33 thb 1.4.18.2: #i53194# Unified include statements (local headers always have double quotes; external headers angle brackets); reverted EventMultiplexer pause events to shared_ptr; removed EventMultiplexer::removeViewHandler(), since the handler is held weakly, anyway.
2006/03/24 18:23:25 thb 1.4.18.1: #i37778# Moved whole slideshow engine from namespace presentation (which conflicts with one of the UNO subnamespaces) to slideshow
2006-12-13 14:44:34 +00:00
Oliver Bolte
224d6748ec INTEGRATION: CWS pchfix02 (1.4.50); FILE MERGED
2006/09/01 17:39:42 kaib 1.4.50.1: #i68856# Added header markers and pch files
2006-09-17 07:40:49 +00:00
Rüdiger Timm
4675991e55 INTEGRATION: CWS ooo19126 (1.3.30); FILE MERGED
2005/09/05 17:41:28 rt 1.3.30.1: #i54170# Change license header: remove SISSL
2005-09-07 19:56:43 +00:00
Vladimir Glazounov
fcb94d82cc INTEGRATION: CWS presfixes01 (1.2.6); FILE MERGED
2005/01/26 11:18:32 dbo 1.2.6.1: #i39787# slide transition revision: recalc bitmaps/sprites in case of view changes
Issue number:
Submitted by:
Reviewed by:
2005-03-10 12:52:07 +00:00
Rüdiger Timm
52d2e03748 INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/11/06 19:58:01 thb 1.1.2.3: #110496# Moved pruneScaleValue to basegfx
2004/09/30 15:01:02 thb 1.1.2.2: #110496# Added another special transition effect (comb transition); sorted out various gcc -Wall warnings; improved docs
2004/08/13 14:47:41 dbo 1.1.2.1: #110496# more wipes
Issue number:
Submitted by:
Reviewed by:
2004-11-26 18:07:54 +00:00