📄 lcdgetp.lst
字号:
C51 COMPILER V8.05a LCDGETP 04/11/2008 14:19:03 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE LCDGETP
OBJECT MODULE PLACED IN LCDGetP.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\Core\LCDGetP.c LARGE BROWSE MDU_F120 DEBUG OBJECTEXTEND P
-RINT(.\LCDGetP.lst) OBJECT(LCDGetP.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 : LCDGetP.c
16 Purpose : Get Pixel routines
17 Note: These routines are in a module of their own
18 because they are mostly not required to link
19 ---------------------------END-OF-HEADER------------------------------
20 */
21
22
23 #include <stddef.h> /* needed for definition of NULL */
24 #include "gui\Core\GUI_Private.h"
25 #include "gui\Core\GUIDebug.h"
26
27
28
29 /*********************************************************************
30 *
31 * LCD_GetPixelIndex
32 *
33 **********************************************************************
34
35 Note: We can not use the standard clipping which we use for drawing
36 operations as it is perfectly legal to read pixels outside of
37 the clipping area. We therefor get the bounding rectangle of the
38 device and use it for clipping.
39 */
40
41 unsigned LCD_GetPixelIndex(int x, int y) {
42 1 LCD_RECT r;
43 1 LCDDEV_L0_GetRect(&r);
44 1 if (x < r.x0)
45 1 return 0;
46 1 if (x > r.x1)
47 1 return 0;
48 1 if (y < r.y0)
49 1 return 0;
50 1 if (y > r.y1)
51 1 return 0;
52 1 return LCDDEV_L0_GetPixelIndex(x,y);
53 1 }
54
C51 COMPILER V8.05a LCDGETP 04/11/2008 14:19:03 PAGE 2
55
56
57
58
59
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 149 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- 12
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 + -