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

More win32 cmake fixes, should now hopefully compile out of the box

This commit is contained in:
fgenesis 2013-06-19 18:35:06 +02:00
parent f8bdac10a2
commit 98399f6bc3
2 changed files with 27 additions and 24 deletions

View file

@ -11,15 +11,15 @@
#include "ByteBuffer.h"
using namespace std;
//OpenGL headers
/*
#ifdef _WINDOWS
#include <windows.h>
#endif
#include <OpenGL/gl.h>
*/
#include "GL/gl.h"
#ifdef _WIN32 /* Stupid Windows needs to include windows.h before gl.h */
#undef FAR
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include <windows.h>
#undef GetCharWidth
#endif
#include "gl.h"
//glFont header
#include "glfont2.h"
@ -232,7 +232,7 @@ int GLFont::GetCharWidth (unsigned char c)
if (c == ' ' && glfont_char->dx <= 0)
{
GLFontChar *glfont_a = &header.chars['a' - header.start_char];
glfont_char->dx = glfont_a->dx*0.75;
glfont_char->dx = glfont_a->dx*0.75f;
glfont_char->dy = glfont_a->dy;
}