Mercurial > hg > orthanc-stone
diff Framework/Scene2DViewport/MeasureToolsToolbox.h @ 906:52b1c6ff10c5
Disabled OpenGL in GuiAdapter to allow for Cairo-only workflows (THIS IS A TEMP CHANGE!!!) + disabled outlined text by default (build macro)
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 17 Jul 2019 17:17:34 +0200 |
parents | 240359ab1651 |
children | b5dec783ba08 |
line wrap: on
line diff
--- a/Framework/Scene2DViewport/MeasureToolsToolbox.h Wed Jul 17 16:56:53 2019 +0200 +++ b/Framework/Scene2DViewport/MeasureToolsToolbox.h Wed Jul 17 17:17:34 2019 +0200 @@ -170,6 +170,7 @@ , const double d); +#if ORTHANC_STONE_ENABLE_OUTLINED_TEXT == 1 /** This helper is used when drawing text with an outline. It set the properties for several text layers at once : first the @@ -177,14 +178,22 @@ layer. The five text layers are supposed to already exist in the scene, starting - from layerIndex, up to (and not including) layerIndex+5. + from startingLayerIndex, up to (and not including) startingLayerIndex+5. */ void SetTextLayerOutlineProperties( Scene2D& scene , boost::shared_ptr<LayerHolder> layerHolder , const char* text , ScenePoint2D p - , int startingLayerIndex = 0); + , int startingLayerIndex); +#else + void SetTextLayerProperties( + Scene2D& scene + , boost::shared_ptr<LayerHolder> layerHolder + , const char* text + , ScenePoint2D p + , int layerIndex); +#endif std::ostream& operator<<(std::ostream& os, const ScenePoint2D& p); }