📄 gui_drawbitmapmag.lst
字号:
C51 COMPILER V8.05a GUI_DRAWBITMAPMAG 04/11/2008 14:18:35 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE GUI_DRAWBITMAPMAG
OBJECT MODULE PLACED IN GUI_DrawBitmapMag.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\Core\GUI_DrawBitmapMag.c LARGE BROWSE MDU_F120 DEBUG OBJE
-CTEXTEND PRINT(.\GUI_DrawBitmapMag.lst) OBJECT(GUI_DrawBitmapMag.obj)
line level source
1 /*
2 *********************************************************************************************************
3 * uC/GUI
4 * Universal graphic software for embedded applications
5 *
6 * (c) Copyright 2002, Micrium Inc., Weston, FL
7 * (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
8 *
9 * 礐/GUI is protected by international copyright laws. Knowledge of the
10 * source code may not be used to write a similar product. This file may
11 * only be used in accordance with a license and should not be redistributed
12 * in any way. We appreciate your understanding and fairness.
13 *
14 ----------------------------------------------------------------------
15 File : GUI_DrawBitmapMag.C
16 Purpose : Implementation file for GUI_DrawBitmapMag
17 ---------------------------END-OF-HEADER------------------------------
18 */
19
20 #include <stddef.h> /* needed for definition of NULL */
21 #include "gui\Core\GUI_Private.h"
22
23 void GUI_DrawBitmapMag (const GUI_BITMAP *pBitmap, int x0, int y0, int xMul, int yMul) {
24 1 GUI_DRAWMODE PrevDraw;
25 1 int xSize, ySize;
26 1 const GUI_LOGPALETTE* pPal;
27 1 const LCD_PIXELINDEX* pTrans;
28 1 GUI_LOCK();
29 1 pPal = pBitmap->pPal;
30 1 xSize = pBitmap->XSize;
31 1 ySize = pBitmap->YSize;
32 1 pTrans = LCD_GetpPalConvTable(pPal);
33 1 PrevDraw = GUI_SetDrawMode((pPal && pPal->HasTrans) ? GUI_DRAWMODE_TRANS : 0);
34 1 #if (GUI_WINSUPPORT)
WM_ADDORG(x0,y0);
{
GUI_RECT r;
r.x0 = x0;
r.x1 = x0 + xSize * xMul -1;
r.y0 = y0;
r.y1 = y0 + xSize * yMul -1;
WM_ITERATE_START(&r);
#endif
44 1 if (pBitmap->pfDraw) {
45 2 #if !defined (__C51__) /* Avoid Keil C51 limitation */
pBitmap->pfDraw(x0, y0, pBitmap->XSize ,pBitmap->YSize, (U8 const *)pBitmap->pData, pBitmap->pPal, x
-Mul, yMul);
#endif
48 2 } else {
49 2 LCD_DrawBitmap(x0, y0, xSize, ySize, xMul, yMul
50 2 ,pBitmap->BitsPerPixel, pBitmap->BytesPerLine
51 2 ,pBitmap->pData, pTrans);
52 2 }
53 1 #if (GUI_WINSUPPORT)
C51 COMPILER V8.05a GUI_DRAWBITMAPMAG 04/11/2008 14:18:35 PAGE 2
WM_ITERATE_END();
}
#endif
57 1 GUI_SetDrawMode(PrevDraw);
58 1 GUI_UNLOCK();
59 1 }
60
61
62
63
64
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 357 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- 23
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -