fixed linkresolver
[sdlgit/SDL-Site.git] / pages / SDL-Cookbook-PDL.html-inc
index 3186d12..2436684 100644 (file)
@@ -9,10 +9,11 @@
 <li><a href="#Creating_a_SDL_Surface_piddle">Creating a SDL Surface piddle</a>
 <ul><li><a href="#Creating_a_simple_piddle">Creating a simple piddle</a></li>
 <li><a href="#Operating_on_the_Surface_safely">Operating on the Surface safely</a></li>
-<li><a href="#Error_due_to_BPP_at_blitting">Error due to BPP at blitting</a>
-</li>
+<li><a href="#Error_due_to_BPP_at_blitting">Error due to BPP at blitting</a></li>
 </ul>
 </li>
+<li><a href="#AUTHORS">AUTHORS</a>
+</li>
 </ul><hr />
 <!-- INDEX END -->
 
@@ -82,7 +83,8 @@
 <p>To make sure SDL is in sync with the data. You must call SDL::Video::lock <strong>before</strong> doing PDL operations on the piddle.</p>
 <pre>    SDL::Video::lock_surface($surface);
 
-    $piddle ( :, 0 : rand(400), 0 : rand(200) ) .=   pdl( rand(225), rand(225), rand(255), 255 );
+    $piddle-&gt;mslice( 'X', [ rand(400), rand(400), 1 ], [ rand(200), rand(200), 1 ] )
+        .= pdl( rand(225), rand(225), rand(255), 255 );
 
 </pre>
 <p>After that you can unlock the surface to blit.</p>
 After that a simple update_rect will so your new surface on the screen.</p>
 
 </div>
+<h1 id="AUTHORS">AUTHORS</h1><p><a href="#TOP" class="toplink">Top</a></p>
+<div id="AUTHORS_CONTENT">
+<p>See <b>AUTHORS</b> in <cite>SDL</cite>.</p>
+
+
+
+
+
+</div>
 </div>
\ No newline at end of file