pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] CVS: Games/Pingus/src blitter_impl.hxx,1.7,1.8


From: grumbel
Subject: [Pingus-CVS] CVS: Games/Pingus/src blitter_impl.hxx,1.7,1.8
Date: 2 Apr 2003 20:47:48 -0000

Update of /var/lib/cvs/Games/Pingus/src
In directory dark:/tmp/cvs-serv16138

Modified Files:
        blitter_impl.hxx 
Log Message:
disabling out of bounce check

Index: blitter_impl.hxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/blitter_impl.hxx,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- blitter_impl.hxx    2 Apr 2003 20:37:47 -0000       1.7
+++ blitter_impl.hxx    2 Apr 2003 20:47:45 -0000       1.8
@@ -205,7 +205,7 @@
       for (int y = 0; y < pheight; ++y)
         for (int x = 0; x < pwidth; ++x)
           {
-// start: bounce check
+#ifdef PINGUS_DO_ROTBLITTER_BOUNDCHECK 
             int i = TransF::get_index(pwidth, pheight, x, y);
             if (i < 0 || i >= pwidth * pheight)
               {
@@ -219,8 +219,7 @@
                 std::cout << "Source: Out of bounce: " << i << " " << pwidth 
<< "x" << pheight
                           << " " <<  typeid(TransF()).name() << std::endl;
               }
-// end: bounce check
-
+#endif
             target_buf[TransF::get_index(pwidth, pheight, x, y)] = 
source_buf[y * pwidth + x];
           }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]