Alexander Burger | 1 Apr 2008 15:33
Picon

Re: Pico, OpenGL menus, refresh problem

Hi Jon,

> a couple of these: "warning: control reaches end of non-void 
> function". I'm a rather lousy C programmer, and I have no idea what 

I haven't tried yet to compile it myself, but probably the warning comes
from 'AddMenuEntry'? Try to put a 'return T' at the end:

   ...
         bufString(ex, name);
         glutAddMenuEntry(name, value);
         return T;
      }
   }

As this function returns garbage data without the 'T', it may well
explain the wrong behavior.

Cheers,
Alx
--

-- 
   Software Lab. Alexander Burger
   Bahnhofstr. 24a, D-86462 Langweid
   abu@..., www.software-lab.de, +49 8230 5060


Gmane