#9 ftglRenderLayout wrong Render() parameters

closed-fixed
None
5
2010-05-22
2008-09-22
No

ftglRenderLayout passes wrong parameters to FTLayout::Render().

The current implementation is:
--------
C_FUN(void, ftglRenderLayout, (FTGLlayout *l, const char *s, int r),
return, Render, (s, r));
--------

but should be:
--------
C_FUN(void, ftglRenderLayout, (FTGLlayout *l, const char *s, int r),
return, Render, (s, -1, FTPoint(), r));
--------

as FTLayout::Render is defined as:
--------
virtual void Render(
const char *string, const int len = -1,
FTPoint position = FTPoint(),
int renderMode = FTGL::RENDER_ALL) = 0;
--------

so at the moment the render mode is erroneously passed as string-length parameter.

Discussion

  • Sam Hocevar

    Sam Hocevar - 2010-05-22

    Thanks. Bug fixed in trunk.

     
  • Sam Hocevar

    Sam Hocevar - 2010-05-22
    • assigned_to: nobody --> sammy
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks