Mercurial > hg > octave-avbm
changeset 13475:d65b8f5373b4
Enlarged 100% scaling size, scaling is now displayed in percent.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Wed, 20 Apr 2011 11:55:45 +0200 |
parents | 3b7573c783cc |
children | bf51c1bb7033 |
files | gui/src/Plot2dWidget.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/src/Plot2dWidget.cpp +++ b/gui/src/Plot2dWidget.cpp @@ -35,7 +35,7 @@ void Plot2dView::paintGL() { glMatrixMode(GL_MODELVIEW_MATRIX); glLoadIdentity(); - glScaled(m_zoom, m_zoom, 0.0); + glScaled(m_zoom * 1.5, m_zoom * 1.5, 0.0); glTranslated(-0.5 - m_scrollX, -0.5 - m_scrollY, 0.0); glClear(GL_COLOR_BUFFER_BIT); @@ -59,8 +59,8 @@ glLoadIdentity(); glColor3d(1.0, 1.0, 1.0); - renderText(-0.9, -0.9, 0.0, QString("Scaling: %1, Translation: (%2/%3)") - .arg(m_zoom) + renderText(-0.9, -0.9, 0.0, QString("Scaling: %1%, Translation: (%2/%3)") + .arg(m_zoom * 100) .arg(m_scrollX) .arg(m_scrollY)); }