1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

OpenGL refactoring.

This commit is contained in:
jules 2011-10-24 21:02:56 +01:00
parent d4b041ad91
commit 04c35b28e6
12 changed files with 81 additions and 174 deletions

View file

@ -244,7 +244,7 @@ namespace
glVertexPointer (2, GL_FLOAT, 0, vertices);
glTexCoordPointer (2, GL_FLOAT, 0, textureCoords);
const Rectangle<int> targetArea (clip.transformed (transform.inverted()));
const Rectangle<int> targetArea (clip.toFloat().transformed (transform.inverted()).getSmallestIntegerContainer());
int x = targetArea.getX() - negativeAwareModulo (targetArea.getX(), textureWidth);
int y = targetArea.getY() - negativeAwareModulo (targetArea.getY(), textureHeight);
const int right = targetArea.getRight();