]> git.mxchange.org Git - flightgear.git/commitdiff
fix 2D compass
authormfranz <mfranz>
Wed, 1 Feb 2006 20:54:17 +0000 (20:54 +0000)
committermfranz <mfranz>
Wed, 1 Feb 2006 20:54:17 +0000 (20:54 +0000)
src/Cockpit/built_in/FGMagRibbon.cxx
src/Cockpit/panel.hxx

index 7f0b643420173435acae7f4a830b74e28f081cd5..9aa7632a39b4e1710a423a66ac2d9f6bc57f0a1c 100644 (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);
index f4dbd7eb294a500475bf9969596f8139ca1f858c..9c110d0722d7a8e898782f76aec23a840b7f7e2a 100644 (file)
@@ -491,6 +491,7 @@ public:
     _texture = texture;
   }
   virtual const FGCroppedTexture &getTexture () const { return _texture; }
+  virtual FGCroppedTexture *getTexture() { return &_texture; }
 
 private:
   FGCroppedTexture _texture;