mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-02 21:45:25 +00:00
Fix borders issue
This commit is contained in:
@ -441,8 +441,8 @@ void Renderer::reset(int w, int h)
|
||||
texsizeY = h;
|
||||
|
||||
// snap to 16x16 blocks
|
||||
texsizeX = ((texsizeX+15)/16)*16;
|
||||
texsizeY = ((texsizeY+15)/16)*16;
|
||||
texsizeX = ((texsizeX-15)/16)*16;
|
||||
texsizeY = ((texsizeY-15)/16)*16;
|
||||
|
||||
m_fAspectX = (texsizeY > texsizeX) ? (float)texsizeX/(float)texsizeY : 1.0f;
|
||||
m_fAspectY = (texsizeX > texsizeY) ? (float)texsizeY/(float)texsizeX : 1.0f;
|
||||
|
||||
Reference in New Issue
Block a user