Changeset 689 for branches/experimental-pdf/include/mapnik/octree.hpp
- Timestamp:
- 04/05/08 21:26:14 (9 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/experimental-pdf/include/mapnik/octree.hpp
r631 r689 25 25 #define _OCTREE_HPP_ 26 26 27 #include <boost/cstdint.hpp> 27 28 #include <boost/format.hpp> 28 29 #include <boost/utility.hpp> … … 33 34 namespace mapnik { 34 35 35 typedef uint8_t byte;36 typedef boost::uint8_t byte; 36 37 struct rgb 37 38 { … … 83 84 unsigned blues; 84 85 unsigned count; 85 uint8_t index;86 boost::uint8_t index; 86 87 }; 87 88 struct node_cmp … … 215 216 { 216 217 unsigned count = itr->count; 217 palette.push_back(rgb( uint8_t(itr->reds/float(count)),218 uint8_t(itr->greens/float(count)),219 uint8_t(itr->blues/float(count))));218 palette.push_back(rgb(boost::uint8_t(itr->reds/float(count)), 219 boost::uint8_t(itr->greens/float(count)), 220 boost::uint8_t(itr->blues/float(count)))); 220 221 itr->index = palette.size() - 1; 221 222 }
