📄 gui__intersectrect.lst
字号:
C51 COMPILER V8.05a GUI__INTERSECTRECT 04/11/2008 14:18:25 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE GUI__INTERSECTRECT
OBJECT MODULE PLACED IN GUI__IntersectRect.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\Core\GUI__IntersectRect.c LARGE BROWSE MDU_F120 DEBUG OBJ
-ECTEXTEND PRINT(.\GUI__IntersectRect.lst) OBJECT(GUI__IntersectRect.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_IntersectRect.c
16 Purpose : Implementation of GUI_IntersectRect
17 ---------------------------END-OF-HEADER------------------------------
18 */
19
20
21 #include "gui\Core\GUI_Protected.h"
22
23 /*********************************************************************
24 *
25 * GUI__IntersectRects
26 *
27 **********************************************************************
28 Purpose:
29 Calc intersection of rectangles
30 Add. info:
31 Rectangles are passed as pointers. These pointers need to be valid;
32 a NULL pointer may not be passed. There is no check for NULL pointers
33 implemented in order to avoid avoid performance penalty.
34 There is a similar function available, GUI__IntersectRects(),
35 which takes 3 parameters and
36 has a return value. Note that this one should be preferred because
37 it is considerably faster and the call requires one parameter less.
38 */
39
40 void GUI__IntersectRect(GUI_RECT* pDest, const GUI_RECT* pr0) {
41 1 if (pDest->x0 < pr0->x0)
42 1 pDest->x0 = pr0->x0;
43 1 if (pDest->y0 < pr0->y0)
44 1 pDest->y0 = pr0->y0;
45 1 if (pDest->x1 > pr0->x1)
46 1 pDest->x1 = pr0->x1;
47 1 if (pDest->y1 > pr0->y1)
48 1 pDest->y1 = pr0->y1;
49 1 }
50
51
52
53
54
C51 COMPILER V8.05a GUI__INTERSECTRECT 04/11/2008 14:18:25 PAGE 2
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 354 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- 6
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 + -