Permalink
Browse files

Fix compilation on windows

  • Loading branch information...
mniip committed May 9, 2018
1 parent 32aaafe commit 12e79ea1111b52f7aeeb4e661dff3877ea5147df
@@ -1,11 +1,11 @@
#pragma once
#define FONT_H 12
#ifndef FONTEDITOR
extern unsigned char font_data[];
extern unsigned short font_ptrs[];
extern unsigned int font_ranges[][2];
extern const unsigned char font_data[];
extern const unsigned short font_ptrs[];
extern const unsigned int font_ranges[][2];
#else
extern unsigned char *font_data;
extern unsigned short *font_ptrs;
extern unsigned int (*font_ranges)[2];
extern const unsigned char *font_data;
extern const unsigned short *font_ptrs;
extern const unsigned int (*font_ranges)[2];
#endif

This file was deleted.

Oops, something went wrong.
@@ -1,23 +1,24 @@
#pragma once
#include <cstddef>
#include "common/String.h"
#include "font.h"
class FontReader
{
unsigned char *pointer;
unsigned char const *pointer;
int width;
int pixels;
int data;
inline FontReader(unsigned char *_pointer):
inline FontReader(unsigned char const *_pointer):
pointer(_pointer + 1),
width(*_pointer),
pixels(0),
data(0)
{}
static inline unsigned char *lookupChar(String::value_type ch)
static inline unsigned char const *lookupChar(String::value_type ch)
{
size_t offset = 0;
for(int i = 0; font_ranges[i][1]; i++)
@@ -5,7 +5,7 @@
#include "Config.h"
#include "Misc.h"
#include "Graphics.h"
#include "Font.h"
#include "FontReader.h"
#ifdef HIGH_QUALITY_RESAMPLE
#include "resampler/resampler.h"
#endif
@@ -1,5 +1,5 @@
#include "Graphics.h"
#include "Font.h"
#include "FontReader.h"
#include "common/tpt-thread.h"
#ifdef OGLI
@@ -1,5 +1,5 @@
#include <cmath>
#include "Font.h"
#include "FontReader.h"
int PIXELMETHODS_CLASS::drawtext_outline(int x, int y, String s, int r, int g, int b, int a)
{

0 comments on commit 12e79ea

Please sign in to comment.