Motion - Improve Alg Draw Location

Improve alg_draw_location()

Introduction

Avoid to calculate same values each time inside loops.

Description of Patch

This patch just does a little improvement of alg_draw_location() using temporary variable to store values that are computed each time in for() loops .

Installation of Patch

tar xfvz motion-3.2.1.tar.gz
cd motion-3.2.1/
patch < ../alg.diff

Change History of Patch

  • alg.diff ver 1.0 , 28 May 2005
    • Use temporary variables to store the values used in for() loops instead of compute them in each loop.

Discussion and Comments


This patch in now in my sources for 3.2.2_snap1

-- KennethLavrsen - 03 Jun 2005
Topic revision: r5 - 13 Aug 2005, KennethLavrsen
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.