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

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

?? lcd159a.c

?? 使用coderwarrior打開 內(nèi)含中文字庫
?? C
?? 第 1 頁 / 共 3 頁
字號:
    goto WriteBit0;
  case 1:
    goto WriteBit1;
  case 2:
    goto WriteBit2;
  default:
    goto WriteBit3;
  }
/*
        Write without transparency
*/
WriteBit0:
  WRITEDATA_DIRECT(*(pTrans+(pixels>>6)));
  if (!--xsize)
    return;
WriteBit1:
  WRITEDATA_DIRECT(*(pTrans+(3&(pixels>>4))));
  if (!--xsize)
    return;
WriteBit2:
  WRITEDATA_DIRECT(*(pTrans+(3&(pixels>>2))));
  if (!--xsize)
    return;
WriteBit3:
  WRITEDATA_DIRECT(*(pTrans+(3&(pixels))));
  if (!--xsize)
    return;
  pixels = *(++p);
  x+=4;
  goto WriteBit0;
/*
        Write with transparency
*/
WriteTBit0:
  if (pixels&(3<<6))
    SETPIXEL(x+0, y, *(pTrans+(pixels>>6)));
  if (!--xsize)
    return;
WriteTBit1:
  if (pixels&(3<<4))
    SETPIXEL(x+1, y, *(pTrans+(3&(pixels>>4))));
  if (!--xsize)
    return;
WriteTBit2:
  if (pixels&(3<<2))
    SETPIXEL(x+2, y, *(pTrans+(3&(pixels>>2))));
  if (!--xsize)
    return;
WriteTBit3:
  if (pixels&(3<<0))
    SETPIXEL(x+3, y, *(pTrans+(3&(pixels))));
  if (!--xsize)
    return;
  pixels = *(++p);
  x+=4;
  goto WriteTBit0;
}

#else

/*
        *****************************************
        *
        *           Draw Bitmap 2 BPP
        *           no optimizations
        *
        *****************************************
*/

static void  DrawBitLine2BPP(int x, int y, U8 const*p, int Diff, int xsize, const LCD_PIXELINDEX*pTrans) {
  LCD_PIXELINDEX pixels;
/*
// Jump to right entry point
*/
  pixels = *p;
  if (GUI_Context.DrawMode & LCD_DRAWMODE_TRANS) switch (Diff&3) {
  case 0:
    goto WriteTBit0;
  case 1:
    goto WriteTBit1;
  case 2:
    goto WriteTBit2;
  default:
    goto WriteTBit3;
  } else switch (Diff&3) {
  case 0:
    goto WriteBit0;
  case 1:
    goto WriteBit1;
  case 2:
    goto WriteBit2;
  default:
    goto WriteBit3;
  }
/*
        Write without transparency
*/
WriteBit0:
  SETPIXEL(x+0, y, *(pTrans+(pixels>>6)));
  if (!--xsize)
    return;
WriteBit1:
  SETPIXEL(x+1, y, *(pTrans+(3&(pixels>>4))));
  if (!--xsize)
    return;
WriteBit2:
  SETPIXEL(x+2, y, *(pTrans+(3&(pixels>>2))));
  if (!--xsize)
    return;
WriteBit3:
  SETPIXEL(x+3, y, *(pTrans+(3&(pixels))));
  if (!--xsize)
    return;
  pixels = *(++p);
  x+=4;
  goto WriteBit0;
/*
        Write with transparency
*/
WriteTBit0:
  if (pixels&(3<<6))
    SETPIXEL(x+0, y, *(pTrans+(pixels>>6)));
  if (!--xsize)
    return;
WriteTBit1:
  if (pixels&(3<<4))
    SETPIXEL(x+1, y, *(pTrans+(3&(pixels>>4))));
  if (!--xsize)
    return;
WriteTBit2:
  if (pixels&(3<<2))
    SETPIXEL(x+2, y, *(pTrans+(3&(pixels>>2))));
  if (!--xsize)
    return;
WriteTBit3:
  if (pixels&(3<<0))
    SETPIXEL(x+3, y, *(pTrans+(3&(pixels))));
  if (!--xsize)
    return;
  pixels = *(++p);
  x+=4;
  goto WriteTBit0;
}

#endif

#endif

/*
        *****************************************
        *
        *           Draw Bitmap 4 BPP
        *           optimized
        *
        *****************************************
*/

#if (LCD_MAX_LOG_COLORS > 4)

#if  (LCD_OPTIMIZE)  \
  && (!LCD_MIRROR_X) \
  && (!LCD_MIRROR_Y) \
  && (!LCD_SWAP_XY)

static void  DrawBitLine4BPP(int x, int y, U8 const*p, int Diff, int xsize, const LCD_PIXELINDEX*pTrans) {
  LCD_PIXELINDEX pixels;
/*
// Jump to right entry point
*/
  pixels = *p;
  if (GUI_Context.DrawMode & LCD_DRAWMODE_TRANS) {
    if ((Diff&1) ==0)
      goto WriteTBit0;
    goto WriteTBit1;
  } else {
    if ((Diff&1) ==0)
      goto WriteBit0;
    goto WriteBit1;
  }
/*
        Write without transparency
*/
WriteBit0:
  WRITEDATA_DIRECT(*(pTrans+(pixels>>4)));
  if (!--xsize)
    return;
WriteBit1:
  WRITEDATA_DIRECT(*(pTrans+(pixels&0xf)));
  if (!--xsize)
    return;
  x+=2;
  pixels = *(++p);
  goto WriteBit0;
/*
        Write with transparency
*/
WriteTBit0:
  if (pixels>>4)
    SETPIXEL(x+0, y, *(pTrans+(pixels>>4)));
  if (!--xsize)
    return;
WriteTBit1:
  if (pixels&0xf)
    SETPIXEL(x+1, y, *(pTrans+(pixels&0xf)));
  if (!--xsize)
    return;
  x+=2;
  pixels = *(++p);
  goto WriteTBit0;
}

#else

/*
        *****************************************
        *
        *           Draw Bitmap 4 BPP
        *           no optimizations
        *
        *****************************************
*/

static void  DrawBitLine4BPP(int x, int y, U8 const*p, int Diff, int xsize, const LCD_PIXELINDEX*pTrans) {
  LCD_PIXELINDEX pixels;
/*
// Jump to right entry point
*/
  pixels = *p;
  if (GUI_Context.DrawMode & LCD_DRAWMODE_TRANS) {
    if ((Diff&1) ==0)
      goto WriteTBit0;
    goto WriteTBit1;
  } else {
    if ((Diff&1) ==0)
      goto WriteBit0;
    goto WriteBit1;
  }
/*
        Write without transparency
*/
WriteBit0:
  SETPIXEL(x+0, y, *(pTrans+(pixels>>4)));
  if (!--xsize)
    return;
WriteBit1:
  SETPIXEL(x+1, y, *(pTrans+(pixels&0xf)));
  if (!--xsize)
    return;
  x+=2;
  pixels = *(++p);
  goto WriteBit0;
/*
        Write with transparency
*/
WriteTBit0:
  if (pixels>>4)
    SETPIXEL(x+0, y, *(pTrans+(pixels>>4)));
  if (!--xsize)
    return;
WriteTBit1:
  if (pixels&0xf)
    SETPIXEL(x+1, y, *(pTrans+(pixels&0xf)));
  if (!--xsize)
    return;
  x+=2;
  pixels = *(++p);
  goto WriteTBit0;
}

#endif

#endif

/*
        *****************************************
        *
        *           Draw Bitmap 8 BPP
        *           optimized
        *
        *****************************************
*/

#if (LCD_MAX_LOG_COLORS > 16)

#if  (LCD_OPTIMIZE)  \
  && (!LCD_MIRROR_X) \
  && (!LCD_MIRROR_Y) \
  && (!LCD_SWAP_XY)

static void  DrawBitLine8BPP(int x, int y, U8 const*p, int xsize, const LCD_PIXELINDEX*pTrans) {
  LCD_PIXELINDEX pixel;
  if ((GUI_Context.DrawMode & LCD_DRAWMODE_TRANS)==0) {
    if (pTrans) {
      for (;xsize > 0; xsize--,x++,p++) {
        pixel = *p;
        WRITEDATA_DIRECT(*(pTrans+pixel));
      }
    } else {
      for (;xsize > 0; xsize--,x++,p++) {
        WRITEDATA_DIRECT(*p);
      }
    }
  } else {   /* Handle transparent bitmap */
    if (pTrans) {
      for (; xsize > 0; xsize--, x++, p++) {
        pixel = *p;
        if (pixel) {
          SETPIXEL(x+0, y, *(pTrans+pixel));
        }
      }
    } else {
      for (; xsize > 0; xsize--, x++, p++) {
        pixel = *p;
        if (pixel) {
          SETPIXEL(x+0, y, pixel);
        }
      }
    }
  }
}

#else

/*
        *****************************************
        *
        *           Draw Bitmap 8 BPP
        *           no optimizations
        *
        *****************************************
*/

static void  DrawBitLine8BPP(int x, int y, U8 const*p, int xsize, const LCD_PIXELINDEX*pTrans) {
  LCD_PIXELINDEX pixel;
  if ((GUI_Context.DrawMode & LCD_DRAWMODE_TRANS)==0) {
    if (pTrans) {
      for (;xsize > 0; xsize--,x++,p++) {
        pixel = *p;
        SETPIXEL(x, y, *(pTrans+pixel));
      }
    } else {
      for (;xsize > 0; xsize--,x++,p++) {
        SETPIXEL(x, y, *p);
      }
    }
  } else {   /* Handle transparent bitmap */
    if (pTrans) {
      for (; xsize > 0; xsize--, x++, p++) {
        pixel = *p;
        if (pixel) {
          SETPIXEL(x+0, y, *(pTrans+pixel));
        }
      }
    } else {
      for (; xsize > 0; xsize--, x++, p++) {
        pixel = *p;
        if (pixel) {
          SETPIXEL(x+0, y, pixel);
        }
      }
    }
  }
}

#endif

#endif

/*
        *********************************************************
        *
        *           Universal draw Bitmap routine
        *
        *********************************************************
*/

void LCD_L0_DrawBitmap   (int x0, int y0,
                       int xsize, int ysize,
                       int BitsPerPixel, 
                       int BytesPerLine,
                       const U8* pData, int Diff,
                       const LCD_PIXELINDEX* pTrans)
{
  int i;
  #if  (LCD_OPTIMIZE)  \
    && (!LCD_MIRROR_X) \
    && (!LCD_MIRROR_Y) \
    && (!LCD_SWAP_XY)
    SET_RECT(x0 + Diff, y0, x0 + Diff + xsize - 1, y0 + ysize - 1);
  #endif
  /*
     Use DrawBitLineXBPP
  */
  for (i=0; i<ysize; i++) {
    switch (BitsPerPixel) {
    case 1:
      DrawBitLine1BPP(x0, i + y0, pData, Diff, xsize, pTrans);
      break;
    #if (LCD_MAX_LOG_COLORS > 2)
      case 2:
        DrawBitLine2BPP(x0, i + y0, pData, Diff, xsize, pTrans);
        break;
    #endif
    #if (LCD_MAX_LOG_COLORS > 4)
      case 4:
        DrawBitLine4BPP(x0, i + y0, pData, Diff, xsize, pTrans);
        break;
    #endif
    #if (LCD_MAX_LOG_COLORS > 16)
      case 8:
        DrawBitLine8BPP(x0, i + y0, pData, xsize, pTrans);
        break;
    #endif
    }
    pData += BytesPerLine;
  }
}

/********************************************************
*
*       LCD_L0_SetOrg
*
*********************************************************

Purpose:        Sets the original position of the virtual display.
                Has no function at this point with the PC-driver.
*/

int OrgX, OrgY;
void LCD_L0_SetOrg(int x, int y) {
  OrgX = x;
  OrgY = y;
}

/*
        *****************************************
        *
        *           LCD_On, LCD_Off
        *
        *****************************************

Sets the original position of the virtual display.
Has no function at this point with the PC-driver.

*/

void LCD_Off          (void) {
#ifdef LCD_OFF
  LCD_OFF();
#endif
}

void LCD_On           (void) {
#ifdef LCD_ON
  LCD_ON();
#endif
}

/*
        *****************************************
        *
        *           LCD_L0_Init
        *
        *****************************************
*/

int  LCD_L0_Init(void) {
  int i;
  GUI_DEBUG_LOG("\nLCD_Init()");
  LCD_INIT_CONTROLLER();
  /* set cursor to illegal value */
  CurrentX = CurrentY = 0xfff;
  /* clear LCD */
  GOTOXY(0, 0, RAM_WRITE);
  for (i = 0; i < LCD_XSIZE_PHYS * LCD_YSIZE_PHYS; i++) {
    LCD_WRITEDATA0(0);
  }
  GOTOXY(0, 0, RAM_WRITE);
  /* clear VRam */
  #if LCD_CACHE
    memset(VRam, 0, sizeof(VRam));
  #endif
  LCD_Off();
  return 0;
}

/*
        *****************************************
        *
        *           LCD_L0_SetLUTEntry
        *
        *****************************************

This function is only a dummy

*/

void LCD_L0_SetLUTEntry(U8 Pos, LCD_COLOR Color) {
  Pos = Pos;
  Color = Color;
}

#else

void LCD159A(void) { } /* avoid empty object files */

#endif  /* (LCD_CONTROLLER == 0x159A) */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日日噜噜夜夜狠狠视频欧美人| 蜜臀va亚洲va欧美va天堂| 丁香婷婷综合五月| 精品国产电影一区二区| 免费成人性网站| 日韩欧美一区二区在线视频| 日韩成人av影视| 91精品国产黑色紧身裤美女| 手机精品视频在线观看| 777午夜精品免费视频| 91女厕偷拍女厕偷拍高清| 中文字幕日韩精品一区 | 日韩综合小视频| 欧美日韩一级二级三级| 午夜在线电影亚洲一区| 欧美日韩久久一区| 亚洲超碰97人人做人人爱| 欧美日韩视频第一区| 五月天视频一区| 日韩欧美久久一区| 国产尤物一区二区在线| 国产欧美精品一区二区色综合朱莉| 国产精品一区专区| 国产精品日韩成人| 91免费视频网址| 亚洲宅男天堂在线观看无病毒| 欧美视频在线一区| 日本伊人色综合网| 精品久久免费看| 丁香天五香天堂综合| 亚洲欧洲av在线| 欧美系列在线观看| 美女在线一区二区| 久久久久久9999| 99久久国产综合色|国产精品| 亚洲欧美一区二区三区久本道91| 欧美无乱码久久久免费午夜一区 | 91久久精品日日躁夜夜躁欧美| 亚洲精品videosex极品| 欧美日本一区二区| 国产一区在线精品| 亚洲色图20p| 91麻豆精品国产综合久久久久久| 国精产品一区一区三区mba桃花 | 麻豆91在线看| 国产欧美精品一区二区色综合 | 国产在线精品视频| 国产精品国产三级国产有无不卡| 91福利在线免费观看| 久久国产精品99久久人人澡| 国产精品污网站| 欧美在线你懂得| 国产一区二区电影| 亚洲精品国产品国语在线app| 91精品国产乱| 波多野结衣欧美| 亚洲成人免费看| 久久精品日产第一区二区三区高清版| 成人avav影音| 肉肉av福利一精品导航| 国产丝袜欧美中文另类| 欧美色偷偷大香| 国产美女视频91| 一区二区三区精品在线观看| 日韩情涩欧美日韩视频| 91视视频在线观看入口直接观看www | 国产精品美女www爽爽爽| 欧美午夜片在线看| 国产麻豆精品一区二区| 亚洲在线视频免费观看| 久久免费偷拍视频| 欧美手机在线视频| 成人一区二区在线观看| 午夜精品福利久久久| 国产精品国产三级国产| 欧美大肚乱孕交hd孕妇| 在线观看不卡一区| 粉嫩绯色av一区二区在线观看| 亚洲aⅴ怡春院| 国产精品久久福利| 精品免费视频一区二区| 色噜噜久久综合| 国产乱码精品一区二区三区五月婷| 亚洲一区二区三区四区在线观看| 久久精品无码一区二区三区| 欧美日韩高清在线播放| 成人av在线电影| 久久99国产精品免费网站| 亚洲国产婷婷综合在线精品| 亚洲国产高清在线| 欧美xxxx在线观看| 欧美久久一二三四区| 972aa.com艺术欧美| 国产盗摄女厕一区二区三区 | 亚洲国产色一区| 亚洲色欲色欲www| 国产日产欧产精品推荐色| 欧美一区二区三区视频在线 | 色综合天天在线| 国产成人亚洲综合a∨婷婷图片| 日本在线不卡视频一二三区| 一区二区激情视频| 国产精品久久久久影院亚瑟| 久久久久久久久久看片| 精品国产免费久久| 日韩一区二区视频在线观看| 欧美视频一区二区三区在线观看| 99久久精品久久久久久清纯| 国产成人在线视频网站| 久久66热偷产精品| 蜜桃av一区二区在线观看| 午夜精品在线看| 亚洲大片精品永久免费| 夜色激情一区二区| 一区二区在线电影| 亚洲欧美电影一区二区| 成人欧美一区二区三区黑人麻豆 | 日韩视频在线永久播放| 欧美日韩视频在线一区二区| 欧美色综合久久| 在线亚洲免费视频| 色婷婷av一区二区三区gif| 一本色道久久综合精品竹菊| 成人毛片在线观看| 成人一区二区三区在线观看 | 久久99九九99精品| 麻豆中文一区二区| 蜜桃av一区二区三区| 麻豆一区二区三| 久久er99热精品一区二区| 美女精品一区二区| 久久国产精品99精品国产| 九色综合狠狠综合久久| 精品一区二区久久| 国产一区二区久久| 成人免费视频播放| av在线综合网| 91美女在线视频| 日本高清视频一区二区| 欧美性猛交xxxx乱大交退制版| 欧洲人成人精品| 欧美精品在线观看播放| 日韩亚洲欧美高清| www欧美成人18+| 中文字幕欧美区| 亚洲天堂久久久久久久| 一二三四社区欧美黄| 亚洲成人激情av| 美女网站视频久久| 国产一区二区在线影院| 国产不卡一区视频| 99v久久综合狠狠综合久久| 日本精品裸体写真集在线观看 | 色激情天天射综合网| 欧美丝袜丝nylons| 日韩三级视频中文字幕| 国产无一区二区| 亚洲精品一二三四区| 香蕉影视欧美成人| 久久成人久久爱| 成人性视频网站| 日本韩国一区二区三区| 91精品国产免费| 久久免费看少妇高潮| 亚洲欧洲成人av每日更新| 亚洲高清免费在线| 国产在线一区观看| 99视频超级精品| 欧美人牲a欧美精品| 久久久久国产免费免费| 亚洲人成网站精品片在线观看| 午夜在线成人av| 国产盗摄精品一区二区三区在线| 一本色道久久综合亚洲aⅴ蜜桃| 91麻豆精品国产91久久久使用方法| 久久综合999| 伊人夜夜躁av伊人久久| 欧美丝袜丝交足nylons| 欧美成人bangbros| 亚洲精品亚洲人成人网| 久久精品99国产精品| 暴力调教一区二区三区| 欧美久久婷婷综合色| 欧美va亚洲va国产综合| 亚洲图片另类小说| 免费观看在线综合| a4yy欧美一区二区三区| 6080国产精品一区二区| 欧美激情一区二区三区全黄 | 亚洲1区2区3区视频| 国产电影精品久久禁18| 欧美日韩国产首页| 国产精品你懂的| 日本人妖一区二区| 成年人国产精品| 欧美一区二区高清| 亚洲色图欧洲色图| 国产精品99久久不卡二区| 欧美图片一区二区三区| 中文字幕av不卡|