1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-07-02 22:14:37 +00:00

Some fixes to make the ever-complaining gcc 4.7 happy (hopefully)

This commit is contained in:
fgenesis 2012-06-27 21:51:54 +02:00
parent 86bcecf5d2
commit 38501dca35
3 changed files with 11 additions and 12 deletions

View file

@ -240,8 +240,6 @@ public:
BB_MAKE_WRITE_OP(uint64);
BB_MAKE_WRITE_OP(float);
BB_MAKE_WRITE_OP(double);
BB_MAKE_WRITE_OP(int);
BB_MAKE_WRITE_OP(unsigned int);
ByteBuffer &operator<<(bool value)
{
@ -272,8 +270,6 @@ public:
BB_MAKE_READ_OP(uint64);
BB_MAKE_READ_OP(float);
BB_MAKE_READ_OP(double);
BB_MAKE_READ_OP(int);
BB_MAKE_READ_OP(unsigned int);
ByteBuffer &operator>>(bool &value)
{

View file

@ -74,16 +74,14 @@ bool GLFont::Create (const char *file_name, int tex, bool loadTexture)
vfclose(fh);
#endif
ByteBuffer::uint32 dummy;
// Read the header from file
header.tex = tex;
bb >> dummy; // skip tex field
bb >> header.tex_width;
bb >> header.tex_height;
bb >> header.start_char;
bb >> header.end_char;
bb >> dummy; // skip chars field
bb.skipRead(4); // skip tex field
header.tex_width = bb.read<ByteBuffer::uint32>();
header.tex_height = bb.read<ByteBuffer::uint32>();
header.start_char = bb.read<ByteBuffer::uint32>();
header.end_char = bb.read<ByteBuffer::uint32>();
bb.skipRead(4); // skip chars field
//Allocate space for character array
num_chars = header.end_char - header.start_char + 1;