Mercurial > hg > svgui
comparison layer/TimeRulerLayer.cpp @ 919:a5488775f880 osx-retina
Pass proxy to layer for painting
author | Chris Cannam |
---|---|
date | Wed, 18 Mar 2015 13:52:07 +0000 |
parents | 4fe7a09be0fe |
children | 2adca8f05583 |
comparison
equal
deleted
inserted
replaced
918:4fe7a09be0fe | 919:a5488775f880 |
---|---|
307 } | 307 } |
308 | 308 |
309 if (v->getViewManager() && v->getViewManager()->getOverlayMode() != | 309 if (v->getViewManager() && v->getViewManager()->getOverlayMode() != |
310 ViewManager::NoOverlays) { | 310 ViewManager::NoOverlays) { |
311 | 311 |
312 if (v->getLayer(0) == this) { | 312 if (v->getView()->getLayer(0) == this) { |
313 // backmost layer, don't worry about outlining the text | 313 // backmost layer, don't worry about outlining the text |
314 paint.drawText(x+2 - tw/2, y, text); | 314 paint.drawText(x+2 - tw/2, y, text); |
315 } else { | 315 } else { |
316 v->drawVisibleText(paint, x+2 - tw/2, y, text, View::OutlinedText); | 316 v->drawVisibleText(paint, x+2 - tw/2, y, text, View::OutlinedText); |
317 } | 317 } |