~matthewpetroff/inkscape/gsoc-2013-unit-refactor

« back to all changes in this revision

Viewing changes to src/extension/internal/emf-win32-inout.cpp

  • Committer: Matthew Petroff
  • Date: 2013-08-01 20:28:56 UTC
  • Revision ID: matthew@mpetroff.net-20130801202856-jt6mo0aahhgpvjpv
Fixed Windows compile bug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
777
777
 
778
778
            d->dc[d->level].PixelsInX = pEmr->rclFrame.right - pEmr->rclFrame.left;
779
779
            d->dc[d->level].PixelsInY = pEmr->rclFrame.bottom - pEmr->rclFrame.top;
780
 
            device_x = pEmr->rclFrame.left/100.0*Inkscape::Util::Quantity::Convert(1, "mm", "px");
781
 
            device_y = pEmr->rclFrame.top/100.0*Inkscape::Util::Quantity::Convert(1, "mm", "px");
 
780
            device_x = pEmr->rclFrame.left/100.0*Inkscape::Util::Quantity::convert(1, "mm", "px");
 
781
            device_y = pEmr->rclFrame.top/100.0*Inkscape::Util::Quantity::convert(1, "mm", "px");
782
782
 
783
783
            d->MMX = d->dc[d->level].PixelsInX / 100.0;
784
784
            d->MMY = d->dc[d->level].PixelsInY / 100.0;
785
785
 
786
 
            d->dc[d->level].PixelsOutX = d->MMX * Inkscape::Util::Quantity::Convert(1, "mm", "px");
787
 
            d->dc[d->level].PixelsOutY = d->MMY * Inkscape::Util::Quantity::Convert(1, "mm", "px");
 
786
            d->dc[d->level].PixelsOutX = d->MMX * Inkscape::Util::Quantity::convert(1, "mm", "px");
 
787
            d->dc[d->level].PixelsOutY = d->MMY * Inkscape::Util::Quantity::convert(1, "mm", "px");
788
788
 
789
789
            // calculate ratio of Inkscape dpi/device dpi
790
790
            if (pEmr->szlMillimeters.cx && pEmr->szlDevice.cx)
791
 
                device_scale = Inkscape::Util::Quantity::Convert(1, "mm", "px")*pEmr->szlMillimeters.cx/pEmr->szlDevice.cx;
 
791
                device_scale = Inkscape::Util::Quantity::convert(1, "mm", "px")*pEmr->szlMillimeters.cx/pEmr->szlDevice.cx;
792
792
            
793
793
            tmp_outdef <<
794
794
                "  width=\"" << d->MMX << "mm\"\n" <<