fix translate to happen after scaling

This commit is contained in:
Josh Holtrop 2014-01-27 21:41:03 -05:00
parent aa981e928e
commit 288434562a

View File

@ -58,9 +58,9 @@ class FadingLogos : Mode
matrix.make_identity();
matrix.scale(lp.scale, lp.scale, lp.scale);
matrix.rotatez(lp.rotation);
matrix.translate(lp.c_x, lp.c_y, 0);
const double multi_monitor_scale = 0.35 * ss.get_aspect() * (1080.0 / 1920.0);
matrix.scale(multi_monitor_scale / ss.get_aspect(), multi_monitor_scale, multi_monitor_scale);
matrix.translate(lp.c_x, lp.c_y, 0);
glUniformMatrix4fv(m_shader.view_idx, 1, GL_TRUE, matrix.value_ptr);
for (int i = 0; i < logo.N_GENTEX; i++)