mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
Revert "- tuxtxt: port smooth font rendering from martii's neutrino mp"
This reverts commit90f7c764f4
. Origin commit data ------------------ Branch: ni/coolstream Commit:4187302886
Author: vanhofen <vanhofen@gmx.de> Date: 2018-01-25 (Thu, 25 Jan 2018) ------------------ This commit was generated by Migit
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -32,12 +31,6 @@
|
|||||||
|
|
||||||
#include <linux/fb.h>
|
#include <linux/fb.h>
|
||||||
|
|
||||||
#include <linux/input.h>
|
|
||||||
|
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#include <sys/mman.h>
|
|
||||||
|
|
||||||
#include <driver/framebuffer.h>
|
|
||||||
#include "tuxtxt_def.h"
|
#include "tuxtxt_def.h"
|
||||||
|
|
||||||
#include <ft2build.h>
|
#include <ft2build.h>
|
||||||
@@ -87,6 +80,7 @@ int fontheight, fontwidth, fontwidth_normal, fontwidth_small, fontwidth_topmenum
|
|||||||
int ymosaic[4];
|
int ymosaic[4];
|
||||||
int displaywidth;
|
int displaywidth;
|
||||||
int tv_pip_y;
|
int tv_pip_y;
|
||||||
|
#define fontwidth_small_lcd 8
|
||||||
|
|
||||||
#define TV43STARTX (ex)
|
#define TV43STARTX (ex)
|
||||||
#define TVENDX (screen_x + screen_w) //ex
|
#define TVENDX (screen_x + screen_w) //ex
|
||||||
@@ -219,10 +213,11 @@ const char *ObjectType[] =
|
|||||||
#define NoServicesFound 3
|
#define NoServicesFound 3
|
||||||
|
|
||||||
/* framebuffer stuff */
|
/* framebuffer stuff */
|
||||||
static fb_pixel_t *lfb = NULL;
|
static fb_pixel_t *lfb = 0;
|
||||||
static fb_pixel_t *lbb = NULL;
|
static fb_pixel_t *lbb = 0;
|
||||||
struct fb_var_screeninfo var_screeninfo;
|
struct fb_var_screeninfo var_screeninfo;
|
||||||
struct fb_fix_screeninfo fix_screeninfo;
|
struct fb_fix_screeninfo fix_screeninfo;
|
||||||
|
int stride;
|
||||||
|
|
||||||
/* freetype stuff */
|
/* freetype stuff */
|
||||||
FT_Library library;
|
FT_Library library;
|
||||||
@@ -564,13 +559,12 @@ char versioninfo[16];
|
|||||||
int hotlist[10];
|
int hotlist[10];
|
||||||
int maxhotlist;
|
int maxhotlist;
|
||||||
|
|
||||||
int pig, rc, fb;
|
int lcd;
|
||||||
int sx, ex, sy, ey;
|
int sx, ex, sy, ey;
|
||||||
int PosX, PosY, StartX, StartY;
|
int PosX, PosY, StartX, StartY;
|
||||||
int lastpage;
|
int lastpage;
|
||||||
int inputcounter;
|
int inputcounter;
|
||||||
int zoommode[2], screenmode[2], transpmode[2], hintmode, nofirst, savedscreenmode[2], showflof, show39, showl25, prevscreenmode[2];
|
int zoommode, screenmode, transpmode, hintmode, boxed, nofirst, savedscreenmode, showflof, show39, showl25, prevscreenmode;
|
||||||
bool boxed, oldboxed;
|
|
||||||
char dumpl25;
|
char dumpl25;
|
||||||
int catch_row, catch_col, catched_page, pagecatching;
|
int catch_row, catch_col, catched_page, pagecatching;
|
||||||
int prev_100, prev_10, next_10, next_100;
|
int prev_100, prev_10, next_10, next_100;
|
||||||
@@ -1204,6 +1198,7 @@ tstPageAttr atrtable[] =
|
|||||||
{ white , menu1 , C_G0P, 0, 0, 0 ,0, 0, 0, 0, 0, 0, 0, 0x3f} /* ATR_CATCHMENU1 a8 <20> */
|
{ white , menu1 , C_G0P, 0, 0, 0 ,0, 0, 0, 0, 0, 0, 0, 0x3f} /* ATR_CATCHMENU1 a8 <20> */
|
||||||
};
|
};
|
||||||
/* buffers */
|
/* buffers */
|
||||||
|
unsigned char lcd_backbuffer[120*64 / 8];
|
||||||
unsigned char page_char[40 * 25];
|
unsigned char page_char[40 * 25];
|
||||||
tstPageAttr page_atrb[40 * 25];
|
tstPageAttr page_atrb[40 * 25];
|
||||||
|
|
||||||
@@ -1220,18 +1215,8 @@ const unsigned short defaultcolors[] = /* 0x0bgr */
|
|||||||
0x420, 0x210, 0x420, 0x000, 0x000
|
0x420, 0x210, 0x420, 0x000, 0x000
|
||||||
};
|
};
|
||||||
|
|
||||||
fb_pixel_t argb[] = {
|
/* filled in setcolors() */
|
||||||
0xff000000, 0xff000000, 0xff000000, 0xff000000,
|
fb_pixel_t bgra[SIZECOLTABLE];
|
||||||
0xff000000, 0xff000000, 0xff000000, 0xff000000,
|
|
||||||
0xff000000, 0xff000000, 0xff000000, 0xff000000,
|
|
||||||
0xff000000, 0xff000000, 0xff000000, 0xff000000,
|
|
||||||
0xff000000, 0xff000000, 0xff000000, 0xff000000,
|
|
||||||
0xff000000, 0xff000000, 0xff000000, 0xff000000,
|
|
||||||
0xff000000, 0xff000000, 0xff000000, 0xff000000,
|
|
||||||
0xff000000, 0xff000000, 0xff000000, 0xff000000,
|
|
||||||
0xff000000, 0xff000000, 0xc0000000, 0x00000000,
|
|
||||||
0x33000000
|
|
||||||
};
|
|
||||||
|
|
||||||
/* old 8bit color table */
|
/* old 8bit color table */
|
||||||
unsigned short rd0[] = {0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, 0x00<<8, 0x00<<8, 0x00<<8, 0, 0 };
|
unsigned short rd0[] = {0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0, 0x00<<8, 0x00<<8, 0x00<<8, 0, 0 };
|
||||||
@@ -1384,37 +1369,362 @@ unsigned char *aShapes[] =
|
|||||||
aG3_70, aG3_71, aG3_72, aG3_73, aG3_74, aG3_75, aG3_76, aG3_77, aG3_78, aG3_79, aG3_7a, aG3_7b, aG3_7c, aG3_7d, aG3_7e
|
aG3_70, aG3_71, aG3_72, aG3_73, aG3_74, aG3_75, aG3_76, aG3_77, aG3_78, aG3_79, aG3_7a, aG3_7b, aG3_7c, aG3_7d, aG3_7e
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
/* lcd layout */
|
||||||
|
const char lcd_layout[] =
|
||||||
|
{
|
||||||
|
#define ____ 0x0
|
||||||
|
#define ___X 0x1
|
||||||
|
#define __X_ 0x2
|
||||||
|
#define __XX 0x3
|
||||||
|
#define _X__ 0x4
|
||||||
|
#define _X_X 0x5
|
||||||
|
#define _XX_ 0x6
|
||||||
|
#define _XXX 0x7
|
||||||
|
#define X___ 0x8
|
||||||
|
#define X__X 0x9
|
||||||
|
#define X_X_ 0xA
|
||||||
|
#define X_XX 0xB
|
||||||
|
#define XX__ 0xC
|
||||||
|
#define XX_X 0xD
|
||||||
|
#define XXX_ 0xE
|
||||||
|
#define XXXX 0xF
|
||||||
|
|
||||||
|
#define i <<4|
|
||||||
|
|
||||||
|
____ i _XXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXX_ i ____,
|
||||||
|
___X i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i X___,
|
||||||
|
__XX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XX__ i ____,XXX_ i _X__,_XXX i __X_,__XX i X___,___X i XX__,X___ i XXX_,____ i _XXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XX__,
|
||||||
|
_XXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,X_XX i XXXX,_X_X i X_XX,X_X_ i XX_X,XX_X i _XXX,XXX_ i X_XX,_XXX i _X_X,XXXX i X_XX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXX_,
|
||||||
|
_XXX i XXXX,X___ i ____,____ i ____,____ i __XX,X_XX i XXXX,_X_X i X_XX,X_X_ i XX_X,XX_X i _XXX,XXX_ i X_XX,_XXX i _X_X,XXXX i X_XX,X___ i ____,____ i ____,____ i ___X,XXXX i XXX_,
|
||||||
|
XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,X_XX i XXXX,_X_X i X_XX,X_X_ i XX_X,XX_X i _XXX,XXX_ i X_XX,_XXX i _X_X,XXXX i X_XX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,
|
||||||
|
XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XX__ i XX__,XX_X i X_XX,X_X_ i XXXX,XX_X i X__X,X__X i X_XX,XXXX i _XX_,_XX_ i _XXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,
|
||||||
|
XXXX i XX__,____ i ____,____ i ____,____ i __XX,XXX_ i XX_X,XX_X i X_XX,X_XX i _XXX,__XX i XX_X,X_XX i XX_X,XX__ i XXXX,_XX_ i XXXX,X___ i ____,____ i ____,____ i ____,__XX i XXXX,
|
||||||
|
XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXX_ i XX_X,XX_X i X_XX,X_X_ i XXXX,XX_X i XX_X,X_XX i X_XX,XXXX i _XXX,_XX_ i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,
|
||||||
|
XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXX_ i XX_X,XX_X i X_XX,X_X_ i XX_X,XX_X i XX_X,X_XX i X_XX,_XXX i _XXX,_XX_ i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,
|
||||||
|
XXX_ i ____,____ i ____,____ i ____,____ i __XX,XXX_ i XX_X,XX_X i XXXX,X_X_ i XX_X,XX_X i XX_X,X_XX i X_XX,_XXX i _XXX,_XX_ i XXXX,X___ i ____,____ i ____,____ i ____,____ i _XXX,
|
||||||
|
XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXX_ i XX_X,XX_X i XXXX,X_X_ i XX_X,XX_X i XX_X,X_XX i X_XX,_XXX i _XXX,_XX_ i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,
|
||||||
|
XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i __XX,XXX_ i ____,_XXX i __X_,__XX i XXX_,_XXX i XX__,X___ i XXXX,X__X i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,
|
||||||
|
XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,
|
||||||
|
XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i XX__,_XXX i XXX_,__XX i ___X,XXXX i X___,XX__ i _XXX,XXX_ i __XX,____ i ___X,X___ i XXXX,XX__ i _XX_,__XX i XXXX,___X i XXXX,X___ i XX_X,XX__ i _XXX,XXX_ i __XX,XXXX i ___X,
|
||||||
|
X__X i __X_,X___ i ___X,_X__ i X_X_,____ i _X_X,__X_ i X___,___X i _X__,X___ i __X_,_X_X i ____,__X_ i X__X,_X__ i ____,X_X_ i ____,_X_X i __X_,__X_ i X___,___X i _X__,____ i X__X,
|
||||||
|
X__X i __X_,X___ i ___X,_X__ i X_X_,____ i _X_X,__X_ i X___,___X i _X__,X___ i __X_,_X_X i ____,__X_ i X__X,_X__ i ____,X_X_ i ____,_X_X i __X_,__X_ i X___,___X i _X__,____ i X__X,
|
||||||
|
X__X i __X_,X___ i ___X,_X__ i X_X_,____ i _X_X,__X_ i X___,___X i _X__,X___ i __X_,_X_X i ____,__X_ i X__X,_X__ i ____,X_X_ i ____,_X_X i __X_,__X_ i X___,___X i _X__,____ i X__X,
|
||||||
|
X__X i __X_,X__X i ___X,_X__ i X__X,X__X i X__X,__X_ i X__X,___X i _X__,X___ i __X_,_X_X i __XX,XX__ i X__X,_X__ i XXXX,__X_ i _X__,_X_X i __X_,__X_ i X__X,___X i _X__,XXXX i ___X,
|
||||||
|
X__X i __X_,X__X i ___X,_X__ i X___,X__X i ___X,__X_ i X___,___X i _X__,X___ i __X_,_X_X i ____,__X_ i X__X,_X__ i ____,X_X_ i ___X,X__X i __X_,__X_ i X__X,___X i _X__,X___ i X__X,
|
||||||
|
X__X i __X_,X__X i ___X,_X__ i X___,X__X i ___X,__X_ i X___,___X i _X__,X___ i __X_,_X_X i ____,__X_ i X__X,_X__ i ____,X_X_ i ____,_X_X i __X_,__X_ i X__X,___X i _X__,X___ i X__X,
|
||||||
|
X__X i __X_,X__X i ___X,_X__ i X___,X__X i ___X,__X_ i X__X,___X i _X__,XXXX i __X_,_X__ i XXX_,__X_ i X__X,_X__ i XXXX,__X_ i _X__,_X_X i __X_,__X_ i X__X,___X i _X__,X___ i X__X,
|
||||||
|
X__X i __X_,X__X i ___X,_X__ i X___,X__X i ___X,__X_ i X__X,___X i _X__,____ i X_X_,_X_X i ____,__X_ i X__X,_X__ i ____,X_X_ i _X__,_X_X i ____,__X_ i X__X,___X i _X__,____ i X__X,
|
||||||
|
X__X i __X_,X__X i ___X,_X__ i X___,X__X i ___X,__X_ i X__X,___X i _X__,____ i X_X_,_X_X i ____,__X_ i X__X,_X__ i ____,X_X_ i _X__,_X_X i ____,__X_ i X__X,___X i _X__,____ i X__X,
|
||||||
|
X___ i XX__,XXX_ i XXXX,__XX i ____,_XX_ i ____,XX__ i _XX_,XXX_ i __XX,XXXX i ___X,X___ i XXXX,XX__ i _XX_,__XX i XXXX,___X i X_XX,X___ i XXXX,XX__ i _XX_,XXX_ i __XX,XXXX i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,XXXX i XXXX,X___ i XXXX,XX__ i _XXX,XXXX i XX__,_XXX i XXX_,__XX i XXXX,___X i XXXX,X___ i ____,__XX i XXXX,___X i X___,XXXX i XX__,_XXX i XXX_,__XX i XXXX,____ i ___X,
|
||||||
|
X___ i ___X,____ i ____,_X_X i ____,__X_ i X___,____ i __X_,X___ i ___X,_X__ i ____,X_X_ i ____,_X__ i ____,_X__ i ____,X_X_ i _X_X,____ i __X_,X___ i ___X,_X__ i ____,X___ i ___X,
|
||||||
|
X___ i ___X,____ i ____,_X_X i ____,__X_ i X___,____ i __X_,X___ i ___X,_X__ i ____,X_X_ i ____,_X__ i ____,_X__ i ____,X_X_ i _X_X,____ i __X_,X___ i ___X,_X__ i ____,X___ i ___X,
|
||||||
|
X___ i ___X,____ i ____,_X_X i ____,__X_ i X___,____ i __X_,X___ i ___X,_X__ i ____,X_X_ i ____,_X__ i ____,_X__ i XX__,X_X_ i _X_X,____ i __X_,X___ i ___X,_X__ i ____,X___ i ___X,
|
||||||
|
X___ i ___X,__X_ i __X_,_X_X i __X_,__X_ i X__X,___X i __X_,X__X i XXX_,_X__ i X___,X__X i X__X,X___ i ____,_X__ i ____,X_X_ i _X__,XX__ i XX__,_XX_ i _XX_,_X__ i XXXX,____ i ___X,
|
||||||
|
X___ i ___X,__X_ i __X_,_X_X i __X_,__X_ i X__X,___X i __X_,X___ i ___X,_X__ i X___,X___ i X__X,____ i ____,_X__ i __XX,__X_ i _X__,_X__ i X___,__X_ i _X__,_X__ i ____,X___ i ___X,
|
||||||
|
X___ i ___X,__X_ i __X_,_X_X i __X_,__X_ i X__X,___X i __X_,X___ i ___X,_X__ i X___,X___ i X__X,____ i ____,_X__ i ____,X_X_ i _X__,_X__ i X___,__X_ i _X__,_X__ i ____,X___ i ___X,
|
||||||
|
X___ i ___X,__X_ i __X_,_X_X i __X_,__X_ i X__X,___X i __X_,X__X i XXX_,_X__ i X___,X___ i X__X,____ i ____,_X__ i XX__,X_X_ i _X__,_X__ i X___,__X_ i _X__,_X__ i XXXX,____ i ___X,
|
||||||
|
X___ i ___X,__X_ i __X_,_X_X i ____,__X_ i X__X,___X i __X_,X___ i ___X,_X__ i X___,X___ i X__X,____ i ____,_X__ i ____,X_X_ i _X__,_X__ i X___,__X_ i _X__,_X__ i ____,X___ i ___X,
|
||||||
|
X___ i ___X,__X_ i __X_,_X_X i ____,__X_ i X__X,___X i __X_,X___ i ___X,_X__ i X___,X___ i X__X,____ i ____,_X__ i ____,X_X_ i _X__,_X__ i X___,__X_ i _X__,_X__ i ____,X___ i ___X,
|
||||||
|
X___ i ____,XX_X i XX_X,X___ i XXXX,XX__ i _XX_,XXX_ i XX__,_XXX i XXX_,__XX i _XXX,____ i _XX_,____ i ____,__XX i XXXX,___X i X___,__XX i ____,___X i X___,__XX i XXXX,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
X___ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ___X,
|
||||||
|
_X__ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i __X_,
|
||||||
|
_X__ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i __X_,
|
||||||
|
__X_ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i _X__,
|
||||||
|
___X i X___,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,____ i ____,___X i X___,
|
||||||
|
____ i _XXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXXX i XXXX,XXX_ i ____,
|
||||||
|
|
||||||
|
#undef i
|
||||||
|
};
|
||||||
|
|
||||||
|
/* lcd digits */
|
||||||
|
const char lcd_digits[] =
|
||||||
|
{
|
||||||
|
0,1,1,1,1,1,1,1,1,0,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,1,1,0,0,0,1,
|
||||||
|
1,0,0,0,1,1,0,0,0,1,
|
||||||
|
1,0,0,0,1,1,0,0,0,1,
|
||||||
|
1,0,0,0,1,1,0,0,0,1,
|
||||||
|
1,0,0,0,1,1,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
0,1,1,1,1,1,1,1,1,0,
|
||||||
|
|
||||||
|
0,0,0,1,1,1,1,0,0,0,
|
||||||
|
0,0,1,1,0,0,1,1,0,0,
|
||||||
|
0,0,1,0,0,0,0,1,0,0,
|
||||||
|
0,0,1,0,0,0,0,1,0,0,
|
||||||
|
0,0,1,0,0,0,0,1,0,0,
|
||||||
|
0,0,1,0,0,0,0,1,0,0,
|
||||||
|
0,0,1,0,0,0,0,1,0,0,
|
||||||
|
0,0,1,0,0,0,0,1,0,0,
|
||||||
|
0,0,1,0,0,0,0,1,0,0,
|
||||||
|
0,0,1,0,0,0,0,1,0,0,
|
||||||
|
0,0,1,0,0,0,0,1,0,0,
|
||||||
|
0,0,1,0,0,0,0,1,0,0,
|
||||||
|
0,0,1,0,0,0,0,1,0,0,
|
||||||
|
0,0,1,1,0,0,1,1,0,0,
|
||||||
|
0,0,0,1,1,1,1,0,0,0,
|
||||||
|
|
||||||
|
0,1,1,1,1,1,1,1,1,0,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,0,1,
|
||||||
|
0,1,1,1,1,1,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,1,1,1,1,0,
|
||||||
|
1,0,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
0,1,1,1,1,1,1,1,1,0,
|
||||||
|
|
||||||
|
0,1,1,1,1,1,1,1,1,0,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,0,1,
|
||||||
|
0,1,1,1,1,1,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,0,0,1,1,0,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
0,1,1,1,1,1,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
0,1,1,1,1,1,1,1,1,0,
|
||||||
|
|
||||||
|
0,1,1,1,0,1,1,1,1,0,
|
||||||
|
1,1,0,1,1,1,0,0,1,1,
|
||||||
|
1,0,0,0,1,0,0,0,0,1,
|
||||||
|
1,0,0,0,1,0,0,0,0,1,
|
||||||
|
1,0,0,0,1,0,0,0,0,1,
|
||||||
|
1,0,0,0,1,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,0,1,
|
||||||
|
0,1,1,1,1,0,0,0,0,1,
|
||||||
|
0,0,0,0,1,0,0,0,0,1,
|
||||||
|
0,0,0,0,1,0,0,0,0,1,
|
||||||
|
0,0,0,0,1,0,0,0,0,1,
|
||||||
|
0,0,0,0,1,1,0,0,1,1,
|
||||||
|
0,0,0,0,0,1,1,1,1,0,
|
||||||
|
|
||||||
|
0,1,1,1,1,1,1,1,1,0,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,1,1,1,1,0,
|
||||||
|
1,0,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,0,1,
|
||||||
|
0,1,1,1,1,1,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
0,1,1,1,1,1,1,1,1,0,
|
||||||
|
|
||||||
|
0,1,1,1,1,1,1,1,1,0,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,1,1,1,1,0,
|
||||||
|
1,0,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,1,1,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
0,1,1,1,1,1,1,1,1,0,
|
||||||
|
|
||||||
|
0,1,1,1,1,1,1,1,1,0,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,0,1,
|
||||||
|
0,1,1,1,1,0,0,0,0,1,
|
||||||
|
0,0,0,0,1,0,0,0,0,1,
|
||||||
|
0,0,0,0,1,0,0,0,0,1,
|
||||||
|
0,0,0,0,1,0,0,0,0,1,
|
||||||
|
0,0,0,0,1,0,0,0,0,1,
|
||||||
|
0,0,0,0,1,0,0,0,0,1,
|
||||||
|
0,0,0,0,1,0,0,0,0,1,
|
||||||
|
0,0,0,0,1,0,0,0,0,1,
|
||||||
|
0,0,0,0,1,1,0,0,1,1,
|
||||||
|
0,0,0,0,0,1,1,1,1,0,
|
||||||
|
|
||||||
|
0,1,1,1,1,1,1,1,1,0,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,1,1,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
0,1,1,0,0,0,0,1,1,0,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,1,1,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
0,1,1,1,1,1,1,1,1,0,
|
||||||
|
|
||||||
|
0,1,1,1,1,1,1,1,1,0,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,1,1,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,0,1,
|
||||||
|
0,1,1,1,1,0,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
0,1,1,1,1,1,1,1,1,0,
|
||||||
|
|
||||||
|
/* 10: - */
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,1,1,1,1,1,1,0,0,
|
||||||
|
0,1,0,0,0,0,0,0,1,0,
|
||||||
|
0,1,0,0,0,0,0,0,1,0,
|
||||||
|
0,1,0,0,0,0,0,0,1,0,
|
||||||
|
0,0,1,1,1,1,1,1,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
|
||||||
|
/* 11: / */
|
||||||
|
0,0,0,0,1,1,1,1,0,0,
|
||||||
|
0,0,0,1,0,0,0,0,1,0,
|
||||||
|
0,0,0,1,0,0,0,0,1,0,
|
||||||
|
0,0,0,1,0,0,0,0,1,0,
|
||||||
|
0,0,0,1,0,0,0,0,1,0,
|
||||||
|
0,0,1,0,0,0,0,1,0,0,
|
||||||
|
0,0,1,0,0,0,0,1,0,0,
|
||||||
|
0,0,1,0,0,0,0,1,0,0,
|
||||||
|
0,0,1,0,0,0,0,1,0,0,
|
||||||
|
0,0,1,0,0,0,0,1,0,0,
|
||||||
|
0,1,0,0,0,0,1,0,0,0,
|
||||||
|
0,1,0,0,0,0,1,0,0,0,
|
||||||
|
0,1,0,0,0,0,1,0,0,0,
|
||||||
|
0,1,0,0,0,0,1,0,0,0,
|
||||||
|
0,0,1,1,1,1,0,0,0,0,
|
||||||
|
|
||||||
|
/* 12: ? */
|
||||||
|
0,1,1,1,1,1,1,1,1,0,
|
||||||
|
1,1,0,0,0,0,0,0,1,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,0,1,
|
||||||
|
0,1,1,1,1,1,0,0,0,1,
|
||||||
|
1,1,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,0,1,
|
||||||
|
1,0,0,0,0,0,0,0,1,1,
|
||||||
|
1,1,1,1,1,1,1,1,1,0,
|
||||||
|
1,0,0,0,0,1,0,0,0,0,
|
||||||
|
1,0,0,0,0,1,0,0,0,0,
|
||||||
|
1,0,0,0,0,1,0,0,0,0,
|
||||||
|
1,1,0,0,1,1,0,0,0,0,
|
||||||
|
0,1,1,1,1,0,0,0,0,0,
|
||||||
|
|
||||||
|
/* 13: " " */
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,
|
||||||
|
};
|
||||||
|
#endif
|
||||||
/* functions */
|
/* functions */
|
||||||
static void ConfigMenu(int Init);
|
void ConfigMenu(int Init);
|
||||||
static void CleanUp();
|
void CleanUp();
|
||||||
static void PageInput(int Number);
|
void PageInput(int Number);
|
||||||
static void ColorKey(int);
|
void ColorKey(int);
|
||||||
static void PageCatching();
|
void PageCatching();
|
||||||
static void CatchNextPage(int, int);
|
void CatchNextPage(int, int);
|
||||||
static void GetNextPageOne(int up);
|
void GetNextPageOne(int up);
|
||||||
static void GetNextSubPage(int offset);
|
void GetNextSubPage(int offset);
|
||||||
static void SwitchZoomMode();
|
void SwitchZoomMode();
|
||||||
static void SwitchScreenMode(int newscreenmode);
|
void SwitchScreenMode(int newscreenmode);
|
||||||
static void SwitchTranspMode();
|
void SwitchTranspMode();
|
||||||
static void SwitchHintMode();
|
void SwitchHintMode();
|
||||||
static void CreateLine25();
|
void CreateLine25();
|
||||||
static void CopyBB2FB();
|
void CopyBB2FB();
|
||||||
static void RenderCatchedPage();
|
void RenderCatchedPage();
|
||||||
static void RenderCharFB(int Char, tstPageAttr *Attribute);
|
void RenderCharFB(int Char, tstPageAttr *Attribute);
|
||||||
static void RenderCharBB(int Char, tstPageAttr *Attribute);
|
void RenderCharBB(int Char, tstPageAttr *Attribute);
|
||||||
static void RenderMessage(int Message);
|
void RenderCharLCD(int Digit, int XPos, int YPos);
|
||||||
static void RenderPage();
|
void RenderMessage(int Message);
|
||||||
static void DecodePage();
|
void RenderPage();
|
||||||
static int Init(int source);
|
void DecodePage();
|
||||||
static int GetNationalSubset(const char *country_code);
|
void UpdateLCD();
|
||||||
static int GetTeletextPIDs();
|
int Init(int source);
|
||||||
static int GetRCCode();
|
int GetNationalSubset(const char *country_code);
|
||||||
static int eval_triplet(int iOData, tstCachedPage *pstCachedPage,
|
int GetTeletextPIDs();
|
||||||
|
int GetRCCode();
|
||||||
|
int eval_triplet(int iOData, tstCachedPage *pstCachedPage,
|
||||||
unsigned char *pAPx, unsigned char *pAPy,
|
unsigned char *pAPx, unsigned char *pAPy,
|
||||||
unsigned char *pAPx0, unsigned char *pAPy0,
|
unsigned char *pAPx0, unsigned char *pAPy0,
|
||||||
unsigned char *drcssubp, unsigned char *gdrcssubp,
|
unsigned char *drcssubp, unsigned char *gdrcssubp,
|
||||||
signed char *endcol, tstPageAttr *attrPassive, unsigned char* pagedata);
|
signed char *endcol, tstPageAttr *attrPassive, unsigned char* pagedata);
|
||||||
static void eval_object(int iONr, tstCachedPage *pstCachedPage,
|
void eval_object(int iONr, tstCachedPage *pstCachedPage,
|
||||||
unsigned char *pAPx, unsigned char *pAPy,
|
unsigned char *pAPx, unsigned char *pAPy,
|
||||||
unsigned char *pAPx0, unsigned char *pAPy0,
|
unsigned char *pAPx0, unsigned char *pAPy0,
|
||||||
tObjType ObjType, unsigned char* pagedata);
|
tObjType ObjType, unsigned char* pagedata);
|
||||||
|
Reference in New Issue
Block a user