mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-27 08:00:44 +00:00
Stop showing pinned graph background when printing
This commit is contained in:
parent
3134b9e92d
commit
7c8eb35afd
@ -3179,11 +3179,10 @@ bool gGraphView::renderGraphs()
|
||||
|
||||
// can't draw snapshot text using this DrawTextQue function
|
||||
// TODO: Find a better solution for detecting when in snapshot mode
|
||||
if (m_graphs.size()>1)
|
||||
if (m_graphs.size()>1) {
|
||||
DrawTextQue();
|
||||
|
||||
py=0; // start drawing at top...
|
||||
|
||||
// Draw a gradient behind pinned graphs
|
||||
// glEnable(GL_BLEND);
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
glBegin(GL_QUADS);
|
||||
@ -3195,7 +3194,9 @@ bool gGraphView::renderGraphs()
|
||||
glVertex2f(width(), pinned_height);
|
||||
glEnd();
|
||||
// glDisable(GL_BLEND);
|
||||
}
|
||||
|
||||
py=0; // start drawing at top...
|
||||
|
||||
// Draw Pinned graphs
|
||||
for (int i=0;i<m_graphs.size();i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user