playX / box2d

Automatically exported from code.google.com/p/box2d
0 stars 0 forks source link

Patch to avoid build problems in v2.2.1 (and onward) for glui_list.cpp #277

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I work for a company that's extremely anal about warnings; any warning is an 
error and warnings are turned up to "11" on the dial. 

This is what I had to do to make this compile (diff between new<my code> and 
existing 2.2.1 code:

--- old/glui_list.cpp   2012-04-19 19:27:01.866424145 -0700
+++ new/glui_list.cpp   2012-04-19 19:25:55.274482647 -0700
@@ -105,6 +105,7 @@
       scrollbar->set_int_val(curr_line);
     this->execute_callback();
     if (associated_object != NULL)
+    {
       if (cb_click_type == GLUI_SINGLE_CLICK) {
         if (obj_cb) {
           // obj_cb(associated_object, user_id);
@@ -119,6 +120,7 @@
           last_line = curr_line;
         }
       }
+    }
     if ( can_draw())
       update_and_draw_text();
   }

Original issue reported on code.google.com by garybrad...@gmail.com on 20 Apr 2012 at 2:45

GoogleCodeExporter commented 9 years ago
The testbed is now using a new GUI system.

Original comment by erinca...@gmail.com on 4 Apr 2014 at 4:19