Replace getYInverted by the new isYInverted of parent class
This commit is contained in:
parent
eae91e189c
commit
c4cd4e8c96
2 changed files with 1 additions and 5 deletions
|
@ -738,7 +738,7 @@ void SceneOpenGL::Window::makeDecorationArrays(const WindowQuadList& quads, cons
|
|||
vertices << quad[ 1 ].x();
|
||||
vertices << quad[ 1 ].y();
|
||||
|
||||
if (tex->getYInverted()) {
|
||||
if (tex->isYInverted()) {
|
||||
texcoords << (float)(quad.originalRight() - rect.x()) / width;
|
||||
texcoords << (float)(quad.originalTop() - rect.y()) / height;
|
||||
texcoords << (float)(quad.originalLeft() - rect.x()) / width;
|
||||
|
|
|
@ -121,10 +121,6 @@ public:
|
|||
y_inverted = inverted;
|
||||
}
|
||||
|
||||
bool getYInverted() const {
|
||||
return y_inverted;
|
||||
}
|
||||
|
||||
protected:
|
||||
Texture(const Pixmap& pix, const QSize& size, int depth);
|
||||
void findTarget();
|
||||
|
|
Loading…
Reference in a new issue