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
No dependency package for msvc6 -stlport
Moderators: CEGUI MVP, CEGUI Team
Re: No dependency package for msvc6 -stlport
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.
Thanks,
-Derek
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
Re: No dependency package for msvc6 -stlport
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
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 15 guests