Browse Source

signed sort value

David Rose 23 years ago
parent
commit
0cf3ae8638
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/pgui/pgItem.cxx

+ 1 - 1
panda/src/pgui/pgItem.cxx

@@ -218,7 +218,7 @@ cull_callback(CullTraverser *trav, CullTraverserData &data) {
       // values, both ints, in the MouseWatcherRegion; but in the
       // values, both ints, in the MouseWatcherRegion; but in the
       // interest of expediency we work within the existing interface
       // interest of expediency we work within the existing interface
       // which only provides one.
       // which only provides one.
-      sort = (bin_sort << 16) | (sort & 0xffff);
+      sort = (bin_sort << 16) | ((sort + 0x8000) & 0xffff);
 
 
       activate_region(transform, sort);
       activate_region(transform, sort);
       pg_trav->_top->add_region(get_region());
       pg_trav->_top->add_region(get_region());