Ignore:
Timestamp:
12/14/12 14:30:35 (11 years ago)
Author:
douglasz
Message:

Ticket #3236 - Melhorias de performance no codigo do Expresso.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/filemanager/tp/dompdf/include/gd_adapter.cls.php

    r3019 r7655  
    264264 
    265265      if ( count($style) == 1 ) { 
    266         for ($i = 0; $i < $style[0] * $this->_aa_factor; $i++) { 
     266        for ($i = 0; $i < $style[0] * $this->_aa_factor; ++$i) { 
    267267          $gd_style[] = $c; 
    268268        } 
    269269 
    270         for ($i = 0; $i < $style[0] * $this->_aa_factor; $i++) { 
     270        for ($i = 0; $i < $style[0] * $this->_aa_factor; ++$i) { 
    271271          $gd_style[] = $this->_bg_color; 
    272272        } 
     
    279279          if ( $i % 2 == 0 ) { 
    280280            // 'On' pattern 
    281             for ($i = 0; $i < $style[0] * $this->_aa_factor; $i++)  
     281            for ($i = 0; $i < $style[0] * $this->_aa_factor; ++$i) 
    282282              $gd_style[] = $c; 
    283283             
    284284          } else { 
    285285            // Off pattern 
    286             for ($i = 0; $i < $style[0] * $this->_aa_factor; $i++)  
     286            for ($i = 0; $i < $style[0] * $this->_aa_factor; ++$i) 
    287287              $gd_style[] = $this->_bg_color; 
    288288             
    289289          } 
    290           $i++; 
     290          ++$i; 
    291291        } 
    292292      } 
     
    332332 
    333333      foreach ($style as $length) { 
    334         for ($i = 0; $i < $length; $i++) { 
     334        for ($i = 0; $i < $length; ++$i) { 
    335335          $gd_style[] = $c; 
    336336        } 
     
    409409 
    410410      foreach ($style as $length) { 
    411         for ($i = 0; $i < $length; $i++) { 
     411        for ($i = 0; $i < $length; ++$i) { 
    412412          $gd_style[] = $c; 
    413413        } 
     
    456456 
    457457      foreach ($style as $length) { 
    458         for ($i = 0; $i < $length; $i++) { 
     458        for ($i = 0; $i < $length; ++$i) { 
    459459          $gd_style[] = $c; 
    460460        } 
Note: See TracChangeset for help on using the changeset viewer.