X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=sdlgit%2FSDL-Site.git;a=blobdiff_plain;f=pages%2FSDL-Cookbook-PDL.html-inc;h=634486054840219c1dbe1a7a5c3416f25733be47;hp=5d4c84779dbb53499d3e936eb0cd956205ebd6a2;hb=f373167ec31ba16ae0770ba461f9de43f41a7ac1;hpb=56d4907c407e8564b4a8a9d09e252573131fad3e diff --git a/pages/SDL-Cookbook-PDL.html-inc b/pages/SDL-Cookbook-PDL.html-inc index 5d4c847..6344860 100644 --- a/pages/SDL-Cookbook-PDL.html-inc +++ b/pages/SDL-Cookbook-PDL.html-inc @@ -424,7 +424,7 @@ Some of the particles can drift off the screen. This is no good. What's causing

and then be sure to create an event object amongst the animation initialization code:

-
 my $event = new SDL::Event;
+
 my $event = SDL::Event->new;
 
 

Finally, we need to update the application loop so that it examines and responds to events. Replace the current application loop with this code:

@@ -579,7 +579,7 @@ Some of the particles can drift off the screen. This is no good. What's causing my $bg = SDL::Rect->new( 0,0,$side_length, $side_length, ); # event listener - my $event = new SDL::Event->new(); + my $event = SDL::Event->new(); # event dispatch table my $keyname_dispatch_table = {