示例#1
0
LOCAL void FT_SRB()
{
	fillwith( 68, SYNC_LEVEL );
	fillwith( 11, BLACK_LEVEL );
	fillwith( 6, SYNC_LEVEL );
	fillwith( LINE32LEN - (6+11+68), BLACK_LEVEL );
}
示例#2
0
LOCAL void FT_SRA()
{
	fillwith( 6, SYNC_LEVEL );
	fillwith( 73, BLACK_LEVEL );
	fillwith( 68, SYNC_LEVEL );
	fillwith( LINE32LEN - (6+73+68), BLACK_LEVEL );
}
示例#3
0
LOCAL void FT_B()
{
	fillwith( 12, SYNC_LEVEL );
	fillwith( 2, BLACK_LEVEL );
	fillwith( 4, COLORBURST_LEVEL );
	fillwith( LINE32LEN-12-6, BLACK_LEVEL );
}
示例#4
0
LOCAL void FT_STA()
{
	pixline = 0; //Reset the framebuffer out line count (can be done multiple times)

	fillwith( 6, SYNC_LEVEL );
	fillwith( 73, BLACK_LEVEL );
	fillwith( 6, SYNC_LEVEL );
	fillwith( LINE32LEN - (6+73+6), BLACK_LEVEL );
}
示例#5
0
LOCAL void FT_CLOSE_M()
{
	fillwith( 12, SYNC_LEVEL );
	fillwith( 2, BLACK_LEVEL );
	fillwith( 4, COLORBURST_LEVEL );
	fillwith( LINE32LEN-12-6, BLACK_LEVEL );
	gline = -1;
	gframe++;

	last_internal_frametime = systimex;
	systimex = 0;
	systimein = system_get_time();
}
示例#6
0
文件: main.c 项目: DrZhang/al-an
void asss()
{
        int a=0,b=0,c=0,d=0,e=0;
        for(a=0;a<2;a++)
            for(b=0;b<2;b++)
                for(c=0;c<2;c++)
                    for(d=0;d<2;d++)
                        for(e=0;e<2;e++)
                        {
                            bm[1][2]=a;
                            bm[2][4]=1-a;
                            bm[3][1]=b;
                            bm[4][3]=1-b;
                            bm[4][3]=c;
                            bm[1][0]=1-c;
                            bm[2][0]=d;
                            bm[1][1]=1-d;
                            bm[3][1]=e;
                            bm[0][2]=1-e;
                            if(check_arry (5)&&bm[3][1]!=bm[4][3])
                            {
                                print_arry2 (5);
                                printf ("\n");
                            }
                            fillwith (5,0);
                        }
}
示例#7
0
文件: main.c 项目: DrZhang/al-an
int main()
{

    fillwith (5,0);
    asss ();

    return 0;
}
void TextTerminal::Reset()
{
	next_attr = 0;
	vgacolor = DEFAULT_COLOR;
	column = line = 0;
	ansisavedposx = ansisavedposy = 0;
	ansimode = NONE;
	TextBuffer* textbuf = textbufhandle->Acquire();
	TextPos fillfrom(0, 0);
	TextPos fillto(textbuf->Width()-1, textbuf->Height()-1);
	TextChar fillwith(' ', vgacolor, 0);
	textbuf->Fill(fillfrom, fillto, fillwith);
	textbuf->SetCursorEnabled(true);
	UpdateCursor(textbuf);
	textbufhandle->Release(textbuf);
}
示例#9
0
LOCAL void FT_LIN()
{
	//TODO: Make this do something useful.
	fillwith( 12, SYNC_LEVEL );
	fillwith( 1, BLACK_LEVEL );
	fillwith( 7, COLORBURST_LEVEL );
	fillwith( 11, BLACK_LEVEL );
#define HDR_SPD (12+1+7+11)

	int fframe = gframe & 1;
//#define FILLTEST
#ifdef FILLTEST

	fillwith( FBW/32, BLACK_LEVEL );
	fillwith( FBW/32, 1 );
	fillwith( FBW/32, 2 );
	fillwith( FBW/32, 3 );
	fillwith( FBW/32, 4 );
	fillwith( FBW/32, 5 );
	fillwith( FBW/32, 6 );
	fillwith( FBW/32, 0 );
	fillwith( FBW/32, 0 );
	fillwith( FBW/32, 0 );
	fillwith( FBW/32, 0 );
	fillwith( FBW/32, 0 );
	fillwith( FBW/8, BLACK_LEVEL );
	fillwith( LINE32LEN - (HDR_SPD+FBW/2), BLACK_LEVEL );

#else
	uint16_t * fbs = (uint16_t*)(&framebuffer[ ( (pixline * (FBW2/2)) + ( ((FBW2/2)*(FBH))*(fframe)) ) / 2 ]);

	for( linescratch = 0; linescratch < FBW2/4; linescratch++ )
	{
		uint16_t fbb;
		fbb = fbs[linescratch];
		*(curdma++) = tablept[(fbb>>0)&15];		tablept += PREMOD_SIZE;
		*(curdma++) = tablept[(fbb>>4)&15];		tablept += PREMOD_SIZE;
		*(curdma++) = tablept[(fbb>>8)&15];		tablept += PREMOD_SIZE;
		*(curdma++) = tablept[(fbb>>12)&15];	tablept += PREMOD_SIZE;
		if( tablept >= tableend ) tablept = tablept - tableend + tablestart;
	}

	fillwith( LINE32LEN - (HDR_SPD+FBW2), BLACK_LEVEL );
#endif

	pixline++;
}