亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? a.txt

?? 該代碼適用于嵌入式開發(fā)
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
	       pixel[nHeadCount+1]=cTmp;       }*/       draw_bmp(x,y,2,16,pixel);       x+=16;  	              if(x>=screen_width) {                              y+=16;                             x=0;                           }       i+=2;      }    else     {      //Yongkui Lu add it to fit the small head problem!      //int iTmp=i;//backup i      //printf("gui:i=%d,count=%d,buf[%d]=%c\n",i,count,i,buf[i]);      /*if(i%2==0){	      i++;      }else{	      i--;      }*/      if(buf[i]=='\n') {	      		k=(y*screen_width+x)>>3;			l=(screen_width-x)>>3;	      		for(j=0;j<16;j++,k+=m)			  memset(screen_ptr+k,0,l);	      		x=0;y+=16;	           			}      else      {	      draw_bmp(x,y,1,16,E_Font+(buf[i]<<4));		      x+=8;      }      //i=iTmp; //load from backup      i++;      /*iTmp=i;//backup i      if(i%2==0){	      i++;      }else{	      i--;      }      if(buf[i]=='\n') {	      		k=(y*screen_width+x)>>3;			l=(screen_width-x)>>3;	      		for(j=0;j<16;j++,k+=m)			  memset(screen_ptr+k,0,l);	      		x=0;y+=16;	           			}      else      {	      draw_bmp(x,y,1,16,E_Font+(buf[i]<<4));		      x+=8;      }      i=iTmp; //load from backup      i++;*/     }  }}void setmode(CopyMode mode){  Mode=mode;}CopyMode getmode(void)	{  return Mode;	}void setcolor(short color){  Color=color;}UINT getcolor(void){	return Color;}void setfillpattern(PatternIndex index){  P_Index=index;	}PatternIndex getfillpattern(void){  return P_Index;	}void moveto(short x,short y){	X=x;Y=y;}void lineto(short x,short y){	line(x,y,X,Y);	X=x;Y=y;}/* * $Id: graphic.c,v 1.2 1999/11/12 13:03:26 till Exp $ * * Graphics primitive drawing functions * derived from: graphic.c Pixy Graphic Library * derived from: lissa.c: Graphics demos * * Copyright (C) 2001  Chen Yang <support@hhcn.com> * Copyright (C) 1999  Till Krech <till@snafu.de> * Copyright (C) 1998  Kenneth Albanowski <kjahds@kjahds.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * The code in this file is partially based on Kenneth Albanowskis work * for the lissa graphics demo. *//******************Notice*********************************** * The Default Font size for ASCII Font is 8x16 * The Default Font size of Chinese Font is 16x16 ***********************************************************/#include <sys/types.h>#include <sys/stat.h>#include <linux/fb.h>#include <stdio.h>#include <unistd.h>#include <fcntl.h>#include <sys/mman.h>#include "mathf.h"#include "font_8x16.h"#include "gui.h"/*Define the correct Chinese Font File Path*/#define CHINESE_FONT_FILE "/font/hanzi"typedef struct {    unsigned short height;    unsigned char data[0];} Pattern;const Pattern _BlackPattern ={  1,    {~0}};const Pattern _WhitePattern ={  1,  { 0 }};const Pattern _DarkGreyPattern ={  2,  {    (unsigned char)0x55555555,    (unsigned char)0xCCCCCCCC  }};const Pattern _LightGreyPattern ={  4,  {    (unsigned char)0x88888888,    (unsigned char)0x00000000,    (unsigned char)0x22222222,    (unsigned char)0x00000000,  }};const Pattern _MicroPengPattern ={  16,  {    0x3c,0x7e,0x56,0xaa,0x86,0x4e,0x7b,0xc3,0x83,0x83,0xc3,0xc7,0xbd,0x99,0x99,    0xff  }};static const Pattern *patterns[] = {  /* This must correspond to the enum in pixy.h! */  &_BlackPattern,  &_WhitePattern,  &_DarkGreyPattern,  &_LightGreyPattern,  &_MicroPengPattern,};static short masktab[]={0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01};static int screen_fd=-1;FILE *C_Font;unsigned char * screen_ptr=(unsigned char*)(0x0400),*E_Font=(unsigned char*)(0x8500);static short screen_width=160,screen_height=160;static short WinSX,WinSY,WinEX,WinEY;static unsigned short X,Y,Color,P_Index,Mode=MODE_SRC;//CopyMode pixy_copy_mode = Mode_SRC;inline void setpixel(short x, short y, short color){    if ((x<0) || (x>=screen_width) || (y<0) || (y>=screen_height))		return;    {	       	unsigned char * loc = screen_ptr + ((y * screen_width*2 + x*2 ));	if (color){		*loc =0xff;*(loc+1)=0xff;	}else{		*loc = 0x0;*(loc+1)=0x0;	}			/*	short mask = masktab[(x&7)];    	unsigned char * loc = screen_ptr + ((y * screen_width + x )>>3);		if (color)			*loc |= mask;		else			*loc &= ~mask;	*/    }}/* Abrash's take on the simplest Bresenham line-drawing algorithm.  * * This isn't especially efficient, as we aren't combining the bit-mask * logic and addresses with the line drawing code, never mind higher * level optimizations like run-length slicing, etc. * */static inline void draw_xish_line(short x, short y, short dx, short dy, short xdir){	short dyX2=dy+dy;	short dyX2mdxX2=dyX2-(dx+dx);	short error=dyX2-dx;		setpixel(x, y, Color);	while (dx--) {		if (error >= 0) {			y++;			error += dyX2mdxX2;		} else {			error += dyX2;		}		x += xdir;		setpixel(x,y,Color);	}}static inline void draw_yish_line(short x, short y, short dx, short dy,short xdir){	short dxX2=dx + dx;	short dxX2mdyX2=dxX2-(dy+dy);	short error=dxX2-dy;		setpixel(x, y, Color);	while (dy--) {		if (error >= 0) {			x+= xdir;			error += dxX2mdyX2;		} else {			error += dxX2;		}		y++;		setpixel(x,y, Color);	}}void line(short x1, short y1, short x2, short y2){	short dx,dy;		if ( y1 > y2) {		short t = y1;		y1 = y2;		y2 = t;		t = x1;		x1 = x2;		x2 = t;	}		dx = x2-x1;	dy = y2-y1;		if (dx > 0) {		if (dx > dy)			draw_xish_line(x1, y1, dx, dy, 1);		else			draw_yish_line(x1, y1, dx, dy, 1);	} else {		dx = -dx;		if (dx > dy)			draw_xish_line(x1, y1, dx, dy, -1);		else			draw_yish_line(x1, y1, dx, dy, -1);	}		}/* One of Abrash's ellipse algorithms  */void ellipse(short x, short y, short a, short b){	short wx, wy;	short thresh;	short asq = a * a;	short bsq = b * b;	short xa, ya;		setpixel(x, y+b, Color);	setpixel(x, y-b, Color);		wx = 0;	wy = b;	xa = 0;	ya = asq * 2 * b;	thresh = asq / 4 - asq * b;		for (;;) {		thresh += xa + bsq;				if (thresh >= 0) {			ya -= asq * 2;			thresh -= ya;			wy--;		}				xa += bsq * 2;		wx++;				if (xa >= ya)		  break;						setpixel(x+wx, y-wy, Color);		setpixel(x-wx, y-wy, Color);		setpixel(x+wx, y+wy, Color);		setpixel(x-wx, y+wy, Color);	}		setpixel(x+a, y, Color);	setpixel(x-a, y, Color);		wx = a;	wy = 0;	xa = (bsq * a) << 1;		ya = 0;	thresh = (bsq >> 2) - bsq * a;		for (;;) {		thresh += ya + asq;				if (thresh >= 0) {			xa -= bsq + bsq;			thresh = thresh - xa;			wx--;		}				ya += asq + asq;		wy++;				if (ya > xa)		  break;		 		setpixel(x+wx, y-wy, Color);		setpixel(x-wx, y-wy, Color);		setpixel(x+wx, y+wy, Color);		setpixel(x-wx, y+wy, Color);	}}inline void h_line(int x1,int x2,int y){ static short ftab[]={0xff,0x7f,0x3f,0x1f,0x0f,0x7,0x3,0x1}; static short btab[]={0x0,0x80,0xc0,0xe0,0xf0,0xf8,0xfc,0xfe}; short count;  count=(x2-x1)>>3; if(count>1) {  unsigned char *loc;    loc=screen_ptr+((y*screen_width+x1)>>3);    if(Color)  {    *(loc)|=ftab[x1&7];         memset(loc+1,0xff,count-1);   *(loc+count)|= ftab[7-(x2&7)];  }   else   {    *loc &=btab[x1&7];    memset(loc+1,0,count-1);      *(loc+count)&=ftab[(x2&7)+1];   } }  else    line(x1, y, x2, y);	  }/* Composites */void rectangle(short x1, short y1, short x2, short y2){	line(x1, y1, x2, y1);	line(x2, y1, x2, y2);	line(x2, y2, x1, y2);	line(x1, y2, x1, y1);}void bar(short x1,short y1,short x2,short y2){		for(;y1<y2;y1++)		h_line(x1,x2,y1);}inline void clip_screen(short in_x, short in_y, short in_w, short in_h, short *out_x, short *out_y, short *out_w, short *out_h) {  short swp;  if (in_w < 0) {    in_x += in_w;    in_w = -in_w;  }  if (in_h < 0) {    in_y += in_h;    in_h = -in_h;  }  if (in_x < 0) {    in_w -= in_x;    in_x = 0;  }  if (in_y < 0) {    in_h -= in_y;    in_y = 0;  }  if (in_w > screen_width) {    in_w = screen_width;  }  if (in_h > screen_height) {    in_h = screen_height;  }  if (in_w < 0) {    in_w = 0;  }  if (in_h < 0) {    in_h = 0;  }  *out_x = in_x;  *out_y = in_y;  *out_w = in_w;  *out_h = in_h;}		void patternfill( short dest_x,		 short dest_y, 		 short w,		 short h,		 unsigned char*dest,		 short dest_units_per_line);void  fillrect(short x1, short y1, short x2, short y2){	short x, y, w, h;	clip_screen(x1, y1, x2-x1, y2-y1, &x, &y, &w, &h); 	patternfill(x, y, w, h, screen_ptr, screen_width>>3);}void bitblt(		 short src_x,		 short src_y,		 short w,		 short h,		 short dest_x,		 short dest_y, 		 unsigned char *src,		 short src_units_per_line, 		 unsigned char *dest,		 short dest_units_per_line		 ) {  /* todo: clip */  register char dx;  unsigned short x,y;  unsigned char src_off, dest_off;  short dest_n;  unsigned char dest_beg_mask, dest_end_mask;    /* goto line y */  src += src_y * src_units_per_line;  dest += dest_y * dest_units_per_line;    /* goto UNIT-offset x */  src += src_x >>3;  dest += dest_x >>3;  /* determine number of affected units per line */    dest_n = ((dest_x + w + 8 - 1) >>3) - (dest_x >>3);  /* determine PIXEL-offsets */  src_off = src_x & 7;  dest_off = dest_x & 7;  dx = dest_off - src_off;    /* make masks to mask out untouchable destination */  dest_beg_mask = ~((unsigned char)(-1) >> dest_off);  dest_end_mask = (unsigned char)(-1) >> ((dest_off + w) & 7);  if (dest_end_mask == (unsigned char)(-1)) {    /* bit stupid */    dest_end_mask = 0;  }  //printf("dx=%d\n", dx);  //dump_unit("dest_beg_mask", dest_beg_mask);  //dump_unit("dest_end_mask", dest_end_mask);  for (y = 0; y < h; y++) {    // process one line    register unsigned char *sp;    register unsigned char *dp;    register unsigned char mask = 0;    register unsigned char left, right;    unsigned char s, d;    sp = src;    dp = dest;    for (x = 0; x < dest_n; x++, sp++, dp++) {      // process one unit      if (dx < 0) {	// first, don't care about masks	left = *sp << (-dx);	right = *(sp+1) >> (8 + dx);      } else if (dx > 0) {	// first, don't care about masks	left = *(sp-1) << (8-dx);	right = *(sp) >> (dx);      } else {	left = *sp;	right = 0;      }      s = left | right;      // combine with destination      switch (Mode) {      case MODE_SRC:      default:	d = s;	break;      case MODE_NOT_SRC:	d = ~s;	break;      case MODE_SRC_OR_DST:	d = *dp | s;	break;      case MODE_SRC_AND_DST:	d = *dp & s;	break;      case MODE_SRC_XOR_DST:	d = *dp ^ s;	break;      case MODE_NOT_SRC_OR_DST:	d = *dp | ~s;	break;      case MODE_NOT_SRC_AND_DST:	d = *dp & ~s;	break;      case MODE_NOT_SRC_XOR_DST:	d = *dp ^ ~s;	break;      case MODE_SRC_OR_NOT_DST:	d = ~*dp | s;	break;      case MODE_SRC_AND_NOT_DST:	d = ~*dp & s;	break;      case MODE_SRC_XOR_NOT_DST:	d = ~*dp ^ ~s;	break;      }      mask = 0;      if (x == 0) {	mask |= dest_beg_mask;      }      if (x == dest_n-1) {	mask |= dest_end_mask;      }      *dp = (*dp & mask) | (d & ~mask);    }    src += src_units_per_line;    dest += dest_units_per_line;  }}void patternfill( short dest_x,		 short dest_y, 		 short w,		 short h,		 unsigned char*dest,		 short dest_units_per_line)  {    /* todo: clip */  register char dx;  unsigned short x,y;  unsigned char src_off, dest_off;  short dest_n;  unsigned char dest_beg_mask, dest_end_mask;  const Pattern *pattern = patterns[P_Index];    /* goto line y */  dest += dest_y * dest_units_per_line;    /* goto UNIT-offset x */  dest += dest_x / 8;  /* determine number of affected units per line */    dest_n = (dest_x + w + 8 - 1) / 8 - dest_x / 8;  /* determine PIXEL-offsets */  dest_off = dest_x % 8;    /* make masks to mask out untouchable destination */  dest_beg_mask = ~((unsigned char)(-1) >> dest_off);  dest_end_mask = (unsigned char)(-1) >> ((dest_off + w) % 8);  if (dest_end_mask == (unsigned char)(-1)) {    /* bit stupid */    dest_end_mask = 0;  }    for (y = 0; y < h; y++) {    // process one line    register unsigned char *dp;    register unsigned char mask = 0;    unsigned char s=pattern->data[(dest_y+y)%pattern->height], d;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品亚洲国产成人av制服丝袜| 色综合一区二区三区| 成人精品免费视频| 欧美一区二区免费观在线| 久久久国产精品不卡| 国产麻豆精品theporn| 精品久久久久久最新网址| 老司机免费视频一区二区| 26uuu另类欧美亚洲曰本| 国模冰冰炮一区二区| 在线观看视频欧美| 视频一区二区中文字幕| 欧美男同性恋视频网站| 美女尤物国产一区| 日韩免费看的电影| 国产美女在线精品| 中文字幕视频一区二区三区久| 丁香激情综合国产| √…a在线天堂一区| 91免费版在线看| 亚洲综合清纯丝袜自拍| 欧美一级欧美三级在线观看| 免费成人在线影院| 欧美一区二区免费观在线| 国产福利一区二区| 亚洲摸摸操操av| 91精品久久久久久久久99蜜臂| 欧美aa在线视频| 欧美午夜精品一区二区蜜桃| 免费看欧美女人艹b| 国产欧美一区二区在线| 在线影院国内精品| 日本aⅴ免费视频一区二区三区| 久久久精品综合| 91免费在线播放| 午夜精品123| 国产精品无码永久免费888| 色成人在线视频| 国产福利一区二区三区视频| 亚洲男人的天堂av| 91精品国产乱| 色综合一个色综合亚洲| 男人的j进女人的j一区| 亚洲三级在线播放| 91超碰这里只有精品国产| 国产精品69毛片高清亚洲| 午夜精品久久久久久久久| 久久丝袜美腿综合| 欧美天天综合网| 国产精品亚洲午夜一区二区三区| 亚洲色图都市小说| 国产香蕉久久精品综合网| 91国产视频在线观看| 大陆成人av片| 日本午夜一本久久久综合| 最新成人av在线| www国产精品av| 欧美性视频一区二区三区| 丁香啪啪综合成人亚洲小说| 亚洲成人在线网站| 久久久综合视频| 欧美精品精品一区| a亚洲天堂av| 国产69精品一区二区亚洲孕妇| 午夜精品久久久久久久久久久 | 欧美中文字幕一区二区三区亚洲| 久久国产尿小便嘘嘘尿| 五月综合激情网| 国产欧美日韩在线| 91亚洲午夜精品久久久久久| 国产精品一色哟哟哟| 日韩高清不卡一区二区三区| 亚洲男女一区二区三区| 久久久久一区二区三区四区| 色一情一乱一乱一91av| 波多野结衣欧美| 国产一区二区三区四区五区入口| 另类小说视频一区二区| 亚洲成人午夜影院| 一区二区三区精品| 亚洲一区二区在线观看视频 | 韩国精品久久久| 亚洲精品中文字幕在线观看| 中国色在线观看另类| 久久精品一区二区三区四区| 久久久精品中文字幕麻豆发布| 欧美xxxxxxxx| 精品成人在线观看| 精品久久国产老人久久综合| 91麻豆精品国产自产在线| 制服丝袜av成人在线看| 欧美三级一区二区| 欧美精品vⅰdeose4hd| 欧美日韩一卡二卡三卡 | 视频一区二区三区在线| 日本中文字幕一区二区视频 | 欧美一区二区人人喊爽| 欧美一区午夜视频在线观看| 在线看日本不卡| 欧美在线免费观看亚洲| 欧洲另类一二三四区| 色婷婷精品大在线视频| 在线免费观看日本一区| 欧美疯狂性受xxxxx喷水图片| 欧美高清精品3d| 制服丝袜激情欧洲亚洲| 国产无人区一区二区三区| 欧美国产日产图区| 亚洲一二三区在线观看| 亚洲成a人片在线观看中文| 一区二区三区日韩欧美精品| 蜜臀av国产精品久久久久| 精久久久久久久久久久| 94色蜜桃网一区二区三区| 在线观看精品一区| 欧美成人r级一区二区三区| 国产欧美一区二区精品性色超碰 | 国内精品视频一区二区三区八戒| 国产成人综合在线| eeuss鲁片一区二区三区在线观看| 在线观看亚洲精品视频| 日韩欧美专区在线| 91精品国产福利| 自拍偷拍亚洲综合| 免费高清在线视频一区·| av动漫一区二区| 高清成人在线观看| 色噜噜狠狠一区二区三区果冻| 欧美日韩在线三级| 欧美日韩大陆一区二区| 国产日韩欧美一区二区三区乱码 | 中文字幕av一区二区三区| 国产精品久久久久久亚洲毛片| 国产精品丝袜91| 免费在线成人网| 99精品久久只有精品| 精品免费视频.| 亚洲另类春色校园小说| 亚洲天堂精品视频| 一区二区三区四区在线| 国内成人自拍视频| 91欧美一区二区| 欧美激情在线看| 日精品一区二区三区| 91啪亚洲精品| 久久伊99综合婷婷久久伊| 亚洲主播在线观看| 国产寡妇亲子伦一区二区| 精品视频一区二区三区免费| 欧美激情中文不卡| 婷婷综合另类小说色区| 成人动漫一区二区| 欧美成人激情免费网| 亚洲综合一区二区精品导航| 美国一区二区三区在线播放| 91视频一区二区| 精品国产精品网麻豆系列| 亚洲男人的天堂在线aⅴ视频| 精品一区二区三区在线观看国产| 99久久精品国产精品久久| 久久久精品免费网站| 亚洲成人免费看| 欧美日韩高清一区二区| 亚洲免费观看高清| 日本久久一区二区三区| 国产精品色眯眯| 国产69精品一区二区亚洲孕妇| 7777精品伊人久久久大香线蕉超级流畅| 亚洲欧美另类图片小说| 成人手机在线视频| 日韩欧美电影一区| 久久 天天综合| 欧美一区二区三区成人| 久久99热狠狠色一区二区| 欧美天堂一区二区三区| 天天色 色综合| 欧美在线观看禁18| 亚洲超碰97人人做人人爱| 在线精品亚洲一区二区不卡| 亚洲一区在线观看视频| 97se亚洲国产综合在线| 亚洲精品国产视频| 91黄色小视频| 国产精品国产三级国产| 国产v日产∨综合v精品视频| 欧美一区二区三区喷汁尤物| 奇米色一区二区三区四区| 日韩一卡二卡三卡国产欧美| 麻豆国产精品视频| 日韩精品一区二区三区swag | 中文字幕免费一区| 蜜臀av在线播放一区二区三区 | 欧美日韩精品电影| 亚洲五码中文字幕| 3d成人h动漫网站入口| 免费观看在线综合| 国产情人综合久久777777| 国产成人一级电影| 国产精品国产三级国产专播品爱网| 99re成人精品视频|