reversed Y coordinate in gui

This commit is contained in:
Miodrag Milanovic 2018-07-11 11:53:24 +02:00
parent 75fda0fa59
commit 0d71ed76cb

View File

@ -343,7 +343,7 @@ void FPGAViewWidget::paintGL()
QMatrix4x4 matrix;
matrix.ortho(QRectF(-aspect / 2.0, -0.5, aspect, 1.0f));
matrix.translate(moveX_, moveY_, -0.5);
matrix.scale(zoom_ * 0.01f, zoom_ * 0.01f, 0);
matrix.scale(zoom_ * 0.01f, -zoom_ * 0.01f, 0);
// Draw grid.
auto grid = LineShaderData(0.01f, QColor("#DDD"));