Browse Source

Fix coords of ImageKnob (reversed to proper ones now)

gh-pages
falkTX 10 years ago
parent
commit
e076d574a9
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      dgl/src/ImageKnob.cpp

+ 4
- 4
dgl/src/ImageKnob.cpp View File

@@ -213,16 +213,16 @@ void ImageKnob::onDisplay()
glRotatef(normValue*fRotationAngle, 0.0f, 0.0f, 1.0f);

glBegin(GL_QUADS);
glTexCoord2f(0.0f, 1.0f);
glTexCoord2f(0.0f, 0.0f);
glVertex2i(-w2, -h2);

glTexCoord2f(1.0f, 1.0f);
glTexCoord2f(1.0f, 0.0f);
glVertex2i(getWidth()-w2, -h2);

glTexCoord2f(1.0f, 0.0f);
glTexCoord2f(1.0f, 1.0f);
glVertex2i(getWidth()-w2, getHeight()-h2);

glTexCoord2f(0.0f, 0.0f);
glTexCoord2f(0.0f, 1.0f);
glVertex2i(-w2, getHeight()-h2);
glEnd();



Loading…
Cancel
Save