gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash gui/fb.cpp ChangeLog


From: Martin Guy
Subject: [Gnash-commit] gnash gui/fb.cpp ChangeLog
Date: Wed, 02 May 2007 17:06:01 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Martin Guy <martinwguy> 07/05/02 17:06:01

Modified files:
        gui            : fb.cpp 
        .              : ChangeLog 

Log message:
                * gui/fb.cpp: Fix compiler warnings

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/fb.cpp?cvsroot=gnash&r1=1.28&r2=1.29
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3065&r2=1.3066

Patches:
Index: gui/fb.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/fb.cpp,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- gui/fb.cpp  28 Feb 2007 17:28:33 -0000      1.28
+++ gui/fb.cpp  2 May 2007 17:06:00 -0000       1.29
@@ -88,7 +88,7 @@
 int terminate_request=false;  // global scope to avoid GUI access
 
 /// Called on CTRL-C and alike
-void terminate_signal(int signo) {
+void terminate_signal(int /*signo*/) {
   terminate_request=true;
 }
 
@@ -378,7 +378,7 @@
     var_screeninfo.xres * pixel_size;
     
     
-  for (int bno=0; bno < _drawbounds.size(); bno++) {
+  for (unsigned int bno=0; bno < _drawbounds.size(); bno++) {
        
                geometry::Range2d<int>& bounds = _drawbounds[bno];
                
@@ -455,7 +455,7 @@
 
        _drawbounds.clear();
                
-       for (int rno=0; rno<ranges.size(); rno++) {
+       for (unsigned int rno=0; rno<ranges.size(); rno++) {
        
                geometry::Range2d<int> bounds = Intersection(
            _renderer->world_to_pixel(ranges.getRange(rno)),
@@ -671,7 +671,7 @@
     return false;
   }
   
-  unsigned char buf[10], byte;
+  unsigned char buf[10];
 
   if (fcntl(input_fd, F_SETFL, fcntl(input_fd, F_GETFL) | O_NONBLOCK)<0) {
     log_error("Could not set non-blocking mode for touchpad device: %s", 
strerror(errno));
@@ -733,8 +733,8 @@
     */
     
     
-    new_x = ((new_x*1.0) - 355) / (1702 - 355) * 1536 + 256;
-    new_y = ((new_y*1.0) - 482) / (1771 - 482) * 1536 + 256;
+    new_x = (int)(((double)new_x - 355) / (1702 - 355) * 1536 + 256);
+    new_y = (int)(((double)new_y - 482) / (1771 - 482) * 1536 + 256);
     
     
     new_x = new_x * m_stage_width / 2048;

Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3065
retrieving revision 1.3066
diff -u -b -r1.3065 -r1.3066
--- ChangeLog   2 May 2007 16:24:12 -0000       1.3065
+++ ChangeLog   2 May 2007 17:06:00 -0000       1.3066
@@ -29,6 +29,7 @@
          compatibility_include.h: Having jpeglib is compulsory, so
          remove TU_CONFIG_LINK_TO_JPEGLIB
        * Revert attempt to use endian.hpp. It broke someone's build. QED.
+       * gui/fb.cpp: Fix compiler warnings
 
 2007-05-02 Sandro Santilli <address@hidden>
 




reply via email to

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