1
0
Fork 0

fix 2D compass

This commit is contained in:
mfranz 2006-02-01 20:54:17 +00:00
parent f2f960f4f4
commit c5f1ffaf64
2 changed files with 3 additions and 2 deletions

View file

@ -65,8 +65,8 @@ FGMagRibbon::draw ()
// Adjust to put the number in the centre
xoffset -= 0.25;
FGCroppedTexture t = getTexture();
t.setCrop(xoffset, yoffset, xoffset + 0.5, yoffset + 0.25);
FGCroppedTexture *t = getTexture();
t->setCrop(xoffset, yoffset, xoffset + 0.5, yoffset + 0.25);
glPushAttrib(GL_DEPTH_BUFFER_BIT);
glEnable(GL_DEPTH_TEST);

View file

@ -491,6 +491,7 @@ public:
_texture = texture;
}
virtual const FGCroppedTexture &getTexture () const { return _texture; }
virtual FGCroppedTexture *getTexture() { return &_texture; }
private:
FGCroppedTexture _texture;