@@ -39,7 +39,7 @@ namespace std::experimental::io2d {
3939 }
4040
4141 // Converts 'value' to an int and returns it. If nearestNeighbor is true, the return value is the result of calling 'static_cast<int>(round(value))'; if false, the return value is the result of calling 'static_cast<int>(trunc(value))'.
42- inline int _Double_to_int (float value, bool nearestNeighbor = true ) {
42+ inline int _Float_to_int (float value, bool nearestNeighbor = true ) {
4343 if (nearestNeighbor) {
4444 // Round to the nearest neighbor.
4545 return static_cast <int >(::std::round (value));
@@ -2483,26 +2483,19 @@ namespace std::experimental::io2d {
24832483 return _Matrix;
24842484 }
24852485
2486- // divergent from paper
2487- /* template <class Allocator>
2486+ // divergent from paper ?
2487+ template <class Allocator >
24882488 inline void surface::fill (const brush& b, const path_builder<Allocator>& pf, const optional<brush_props>& bp, const optional<render_props>& rp, const optional<clip_props>& cl) {
24892489 interpreted_path pg (pf);
24902490 fill (b, pg, bp, rp, cl);
2491- }*/
2491+ }
24922492
24932493 template <class Allocator >
24942494 inline void surface::stroke (const brush& b, const path_builder<Allocator>& pf, const optional<brush_props>& bp, const optional<stroke_props>& sp, const optional<dashes>& d, const optional<render_props>& rp, const optional<clip_props>& cl) {
24952495 interpreted_path pg (pf);
24962496 stroke (b, pg, bp, sp, d, rp, cl);
24972497 }
24982498
2499- // divergent from paper
2500- /* template <class Allocator>
2501- inline void surface::mask(const brush& b, const brush& mb, const path_builder<Allocator>& pf, const optional<brush_props>& bp, const optional<mask_props>& mp, const optional<render_props>&rp, const optional<clip_props>& cl) {
2502- interpreted_path pg(pf);
2503- mask(b, mb, pg, bp, mp, rp, cl);
2504- }*/
2505-
25062499 inline mapped_surface::mapped_surface (surface::native_handle_type nh, surface::native_handle_type map_of)
25072500 : _Mapped_surface (nh)
25082501 , _Map_of (map_of) {
0 commit comments