Some small fixes to make LOVE compilable in MSVC2010.

This commit is contained in:
rude
2010-09-05 12:05:05 +02:00
parent 2107f6810b
commit 8c721ceb6a
5 changed files with 21 additions and 8 deletions
+4 -2
View File
@@ -48,11 +48,13 @@ namespace freetype
Rasterizer * Font::newRasterizer(love::image::ImageData * data, std::string glyphs)
{
int length = glyphs.size();
unsigned short g[length];
unsigned short * g = new unsigned short[length];
for (int i = 0; i < length; i++) {
g[i] = glyphs[i];
}
return newRasterizer(data, g, length);
Rasterizer * r = newRasterizer(data, g, length);
delete [] g;
return r;
}
Rasterizer * Font::newRasterizer(love::image::ImageData * data, unsigned short * glyphs, int length)