ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/kgsueme/kgsueme/game.pl
(Generate patch)

Comparing kgsueme/kgsueme/game.pl (file contents):
Revision 1.16 by pcg, Sun Jun 1 02:33:08 2003 UTC vs.
Revision 1.17 by pcg, Sun Jun 1 02:39:00 2003 UTC

253 $x -= ($W * $s + $spacing * (@c - 1)) * 0.5; 253 $x -= ($W * $s + $spacing * (@c - 1)) * 0.5;
254 $y -= $height * 0.5; 254 $y -= $height * 0.5;
255 255
256 for (@c) { 256 for (@c) {
257 my $w = $_->get_width * $s; 257 my $w = $_->get_width * $s;
258 # +2 == don't fight the rounding
258 $_->composite ($pixbuf, 259 $_->composite ($pixbuf,
259 $x, $y, $w+1, $height+1, $x, $y, $s, $s, 260 $x, $y, $w+2, $height+2, $x, $y, $s, $s,
260 $::config->{speed} ? INTERP_NEAREST : INTERP_BILINEAR, 255); 261 $::config->{speed} ? INTERP_NEAREST : INTERP_BILINEAR, 255);
261 262
262 $x += $w + $spacing; 263 $x += $w + $spacing;
263 } 264 }
264 } 265 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines