#include "teletxt/txtfont.h"
#include "staticartwork.h"
-unsigned int interpol_table_fac1[16][22];
-unsigned int interpol_table_fac2[16][22];
-unsigned int interpol_table_fac3[16][22];
-unsigned int interpol_table_fac4[16][22];
-int interpol_lowbit[16];
-int interpol_upbit[16];
-int interpol_lowline[22];
-int interpol_upline[22];
-bool pol_table_inited=false;
-
-void initpol_tables(){
+Surface* Surface::screen = NULL;
+
+#ifndef GRADIENT_DRAWING
+osd_font_t* Surface::font = &font_helvB18;
+#endif
+
+Surface::Surface(int id)
+{
+ if (id == SCREEN) screen = this;
+}
+
+Surface::~Surface()
+{
+}
+
+Surface* Surface::getScreen()
+{
+ return screen;
+}
+
+void Surface::initpol_tables()
+{
int charsizex;
int charsizey;
charsizex=16;
interpol_table_fac2[px][py]=(unsigned int)(xinvweight*yweight*256.);
interpol_table_fac3[px][py]=(unsigned int)(xweight*yinvweight*256.);
interpol_table_fac4[px][py]=(unsigned int)(xinvweight*yinvweight*256.);
-
}
}
}
-
-Surface* Surface::screen = NULL;
-#ifndef GRADIENT_DRAWING
-osd_font_t* Surface::font = &font_helvB18;
-#endif
-
-Surface::Surface(int id)
-{
- if (id == SCREEN) screen = this;
-}
-
-Surface::~Surface()
-{
-}
-
-Surface* Surface::getScreen()
-{
- return screen;
-}
-
int Surface::drawText(const char* text, int x, int y, const DrawStyle& c)
{
return drawText(text, x, y, 2000, c);
#ifndef GRADIENT_DRAWING
// Font stuff
+// FIXME does anything use this anymore?
typedef struct bogl_font {
char *name; /* Font name. */
int height; /* Height in pixels. */
virtual void drawPixel(int x, int y, unsigned int c, bool fastdraw=false)=0; // deprecated preparation for vector based drawing, only allowed to be called inside implementation
virtual void drawPixel(int x, int y, Colour& c, bool fastdraw=false)=0; // deprecated preparation for vector based drawing, only allowed to be called inside implementation
+ private:
+ void initpol_tables();
+ unsigned int interpol_table_fac1[16][22];
+ unsigned int interpol_table_fac2[16][22];
+ unsigned int interpol_table_fac3[16][22];
+ unsigned int interpol_table_fac4[16][22];
+ int interpol_lowbit[16];
+ int interpol_upbit[16];
+ int interpol_lowline[22];
+ int interpol_upline[22];
+ bool pol_table_inited=false;
};
#endif