From 362fd3e5d776f8857e257f8de23a91af3389ad36 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Fri, 9 Sep 2016 15:56:39 +0200 Subject: [PATCH] Increase thickness of SurfaceHighlightWidget line --- src/Application/SurfaceHighlightWidget.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Application/SurfaceHighlightWidget.cpp b/src/Application/SurfaceHighlightWidget.cpp index be8f781..eca6eaf 100644 --- a/src/Application/SurfaceHighlightWidget.cpp +++ b/src/Application/SurfaceHighlightWidget.cpp @@ -16,14 +16,14 @@ void SurfaceHighlightWidget::draw(){ return; } + ofPushStyle(); + ofSetLineWidth(2); + ofSetColor(255); + if(_sm->getSelectedSurface()->getType() == SurfaceType::QUAD_SURFACE && ((QuadSurface *)_sm->getSelectedSurface())->getPerspectiveWarping()){ ofPolyline line = _sm->getSelectedSurface()->getHitArea(); - ofPushStyle(); - ofSetLineWidth(1); - ofSetColor(255, 255, 255, 255); line.draw(); - ofPopStyle(); }else if(_sm->getSelectedSurface()->getType() == SurfaceType::GRID_WARP_SURFACE){ _sm->getSelectedSurface()->getMesh().drawWireframe(); }else{ @@ -38,6 +38,8 @@ void SurfaceHighlightWidget::draw(){ p.close(); p.draw(); } + + ofPopStyle(); } } // namespace piMapper