summaryrefslogtreecommitdiff
path: root/canvas/source/opengl/ogl_spritedevicehelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source/opengl/ogl_spritedevicehelper.cxx')
-rw-r--r--canvas/source/opengl/ogl_spritedevicehelper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/opengl/ogl_spritedevicehelper.cxx b/canvas/source/opengl/ogl_spritedevicehelper.cxx
index 0ccf5b7df17f..50bf7142e9a4 100644
--- a/canvas/source/opengl/ogl_spritedevicehelper.cxx
+++ b/canvas/source/opengl/ogl_spritedevicehelper.cxx
@@ -160,7 +160,7 @@ namespace oglcanvas
// Map a one-by-one millimeter box to pixel
SystemChildWindow* pChildWindow = mxContext->getChildWindow();
const MapMode aOldMapMode( pChildWindow->GetMapMode() );
- pChildWindow->SetMapMode( MapMode(MAP_MM) );
+ pChildWindow->SetMapMode( MapMode(MapUnit::MapMM) );
const Size aPixelSize( pChildWindow->LogicToPixel(Size(1,1)) );
pChildWindow->SetMapMode( aOldMapMode );
@@ -175,7 +175,7 @@ namespace oglcanvas
// Map the pixel dimensions of the output window to millimeter
SystemChildWindow* pChildWindow = mxContext->getChildWindow();
const MapMode aOldMapMode( pChildWindow->GetMapMode() );
- pChildWindow->SetMapMode( MapMode(MAP_MM) );
+ pChildWindow->SetMapMode( MapMode(MapUnit::MapMM) );
const Size aLogSize( pChildWindow->PixelToLogic(pChildWindow->GetOutputSizePixel()) );
pChildWindow->SetMapMode( aOldMapMode );