- really annoying cast in font.cpp (they don't need to be floats!)
- move #ifdef OPENGL inside header guards to enable optimization (some compilers are exactly half-stupid)
SVN-Revision: 5774
for( unsigned int i = 0; i < chars.size(); i++) {
for(UTF8Iterator chr(chars[i]); !chr.done(); ++chr) {
- float y = row * char_height;
- float x = col * char_width;
+ int y = row * char_height;
+ int x = col * char_width;
if( ++col == wrap ) { col=0; row++; }
if( *chr == 0x0020 && glyphs[0x20].surface_idx != -1) continue;
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include <config.h>
-
-#ifdef HAVE_OPENGL
#ifndef __GL_TEXTURE_HPP__
#define __GL_TEXTURE_HPP__
+#ifdef HAVE_OPENGL
+
+#include <config.h>
#include <SDL.h>
#include "texture.hpp"
#endif
#endif
+