No dependency package for msvc6 -stlport

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Derek
Quite a regular
Quite a regular
Posts: 70
Joined: Wed Jan 12, 2005 12:06

No dependency package for msvc6 -stlport

Postby Derek » Sat Apr 16, 2005 18:41

Hey,

I thought stlport was removed as a dependency (optional?) from the cegui sources. I don't see an msvc6 dependency package without stlport. Is there something i'm missing here? I'd like to not have to use stlport in my project. Thanks.

-Derek

User avatar
Derek
Quite a regular
Quite a regular
Posts: 70
Joined: Wed Jan 12, 2005 12:06

Re: No dependency package for msvc6 -stlport

Postby Derek » Sat Apr 16, 2005 18:44

Also, this piece of code in CEGUIFont.cpp, line 673 causes a compilation error in MSVC++6:

The appropriate change has been made (in bold). Basically changed the letter from c to z.

Code: Select all

   for (size_t c = 0; c < char_count; ++c)
      if ((text[c] == ' ') || (text[c] == '\t')) ++space_count;

   // The width that must be added to each space character in order to transform the left aligned text in justified text
   float shared_lost_space = 0.0;
   if (space_count > 0) shared_lost_space = lost_space / (float)space_count;

   for (size_t [b]z[/b] = 0; [b]z[/b] < char_count; ++z)
   {
      pos = d_cp_map.find(text[[b]z[/b]]);

      if (pos != end)
      {
         const Image* img = pos->second.d_image;
         cur_pos.d_y = base_y - (img->getOffsetY() - img->getOffsetY() * y_scale);
         Size sz(img->getWidth() * x_scale, img->getHeight() * y_scale);
         img->draw(cur_pos, sz, clip_rect, colours);
         cur_pos.d_x += (float)pos->second.d_horz_advance * x_scale;
         // That's where we adjust the size of each space character
         if ((text[[b]z[/b]] == ' ') || (text[[b]z[/b]] == '\t')) cur_pos.d_x += shared_lost_space;
      }

   }

}


Thanks,
-Derek

User avatar
Derek
Quite a regular
Quite a regular
Posts: 70
Joined: Wed Jan 12, 2005 12:06

Re: No dependency package for msvc6 -stlport

Postby Derek » Sat Apr 16, 2005 18:54

I tried to submit a patch but it didn't work. Here is the patch file:

http://www.game-security.com/CEGUIFont.cpp.patch

-Derek


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 9 guests