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.cxx,1.19,1.20 blitter_impl.hx


From: torangan
Subject: [Pingus-CVS] CVS: Games/Pingus/src blitter.cxx,1.19,1.20 blitter_impl.hxx,1.1,1.2
Date: 19 Oct 2002 19:40:37 -0000

Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv10046

Modified Files:
        blitter.cxx blitter_impl.hxx 
Log Message:
- fixed a few (rather a lot) unused argument warnings
- changed template instatiation syntax


Index: blitter.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/blitter.cxx,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- blitter.cxx 16 Oct 2002 11:29:30 -0000      1.19
+++ blitter.cxx 19 Oct 2002 19:40:34 -0000      1.20
@@ -670,13 +670,13 @@
 CL_Surface
 Blitter::rotate_180 (const CL_Surface& sur)
 {
-  return BlitterImpl::modify(sur, BlitterImpl::transform_rot180());
+  return BlitterImpl::modify<BlitterImpl::transform_rot180>(sur);
 }
 
 CL_Surface
 Blitter::rotate_270 (const CL_Surface& sur)
 {
-  return BlitterImpl::modify(sur, BlitterImpl::transform_rot270());
+  return BlitterImpl::modify<BlitterImpl::transform_rot270>(sur);
 }
 
 CL_Surface

Index: blitter_impl.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/blitter_impl.hxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- blitter_impl.hxx    16 Oct 2002 11:29:30 -0000      1.1
+++ blitter_impl.hxx    19 Oct 2002 19:40:34 -0000      1.2
@@ -48,38 +48,38 @@
     return (width * height) - (y * width + x);
   }
 
-  static inline int get_x(int width, int height, int x, int y) {
+  static inline int get_x(int width, int height, int x, int y) { 
UNUSED_ARG(height); UNUSED_ARG(y);
     return width - x - 1;
   }
 
-  static inline int get_y(int width, int height, int x, int y) {
+  static inline int get_y(int width, int height, int x, int y) { 
UNUSED_ARG(width);  UNUSED_ARG(x);
     return height - y - 1;
   }
 
-  static inline int get_width(int width, int height) { return width; }
-  static inline int get_height(int width, int height) { return height; }
+  static inline int get_width (int width, int height) { UNUSED_ARG(height); 
return width; }
+  static inline int get_height(int width, int height) { UNUSED_ARG(width);  
return height; }
 };
 
 struct transform_rot270
 {
-  static inline int get_index(int width, int height, int x, int y) {
+  static inline int get_index(int width, int height, int x, int y) { 
UNUSED_ARG(height);
     return (x * width) + y;
   }
 
-  static inline int get_x(int width, int height, int x, int y) {
+  static inline int get_x(int width, int height, int x, int y) { 
UNUSED_ARG(width); UNUSED_ARG(height); UNUSED_ARG(x);
     return y;
   }
 
-  static inline int get_y(int width, int height, int x, int y) {
+  static inline int get_y(int width, int height, int x, int y) { 
UNUSED_ARG(width); UNUSED_ARG(y);
     return height - x - 1;
   }
 
-  static inline int get_width(int width, int height) { return height; }
-  static inline int get_height(int width, int height) { return width; }
+  static inline int get_width (int width, int height) { UNUSED_ARG(width);  
return height; }
+  static inline int get_height(int width, int height) { UNUSED_ARG(height); 
return width; }
 };
 
 template<class TransF>
-CL_Surface modify(const CL_Surface& sur, TransF transf) 
+CL_Surface modify(const CL_Surface& sur)
 {
   CL_SurfaceProvider* prov = sur.get_provider ();
   int pwidth  = prov->get_width();





reply via email to

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