Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7889 in orxonox.OLD for branches/gui/src/lib


Ignore:
Timestamp:
May 27, 2006, 3:14:45 AM (19 years ago)
Author:
bensch
Message:

gui: fixed one of the holy bugs

Location:
branches/gui/src/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/graphics/text_engine/multi_line_text.cc

    r7758 r7889  
    6464    return;
    6565  glPushMatrix();
     66  glPushAttrib(GL_ENABLE_BIT);
    6667  // transform for alignment.
    6768  // TODO make the Stuff with the alignment
     
    117118  }
    118119  glEnd();
     120  glPopAttrib();
    119121  glPopMatrix();
    120122}
  • branches/gui/src/lib/graphics/text_engine/text.cc

    r7877 r7889  
    189189    return;
    190190  glPushMatrix();
     191  glPushAttrib(GL_ENABLE_BIT);
    191192  // transform for alignment.
    192193  if (this->getAlignment() == TEXT_ALIGN_RIGHT)
     
    230231  }
    231232  glEnd();
     233  glPopAttrib();
    232234  glPopMatrix();
    233235}
  • branches/gui/src/lib/gui/gl_gui/glgui_pushbutton.cc

    r7888 r7889  
    9292    glBegin(GL_QUADS);
    9393
    94     glVertex2d(1, 1);
    95     glVertex2d(1, this->getSizeY2D() -1);
    96     glVertex2d(this->getSizeX2D() -1, this->getSizeY2D()-1);
    97     glVertex2d(this->getSizeX2D()-1,1);
     94    glTexCoord2i(0,0); glVertex2d(1, 1);
     95    glTexCoord2i(0,1); glVertex2d(1, this->getSizeY2D() - 1);
     96    glTexCoord2i(1,1); glVertex2d(this->getSizeX2D() - 1, this->getSizeY2D() -1);
     97    glTexCoord2i(1,0); glVertex2d(this->getSizeX2D() - 1, 1);
    9898
    9999    glEnd();
Note: See TracChangeset for help on using the changeset viewer.