Explorar el Código

signed sort value

David Rose hace 23 años
padre
commit
0cf3ae8638
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
       // interest of expediency we work within the existing interface
       // which only provides one.
-      sort = (bin_sort << 16) | (sort & 0xffff);
+      sort = (bin_sort << 16) | ((sort + 0x8000) & 0xffff);
 
       activate_region(transform, sort);
       pg_trav->_top->add_region(get_region());