⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lcd_drawvline.lst

📁 Keil C下通过的UCGUI,UCGUI的移植源代码
💻 LST
字号:
C51 COMPILER V8.05a   LCD_DRAWVLINE                                                        04/11/2008 14:19:01 PAGE 1   


C51 COMPILER V8.05a, COMPILATION OF MODULE LCD_DRAWVLINE
OBJECT MODULE PLACED IN LCD_DrawVLine.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\Core\LCD_DrawVLine.c LARGE BROWSE MDU_F120 DEBUG OBJECTEX
                    -TEND PRINT(.\LCD_DrawVLine.lst) OBJECT(LCD_DrawVLine.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        : LCD_DrawVLine.c
  16          Purpose     : Implementation of optional routines
  17          ---------------------------END-OF-HEADER------------------------------
  18          */
  19          
  20          
  21          #include "LCD_Private.h"
  22          #include "GUI_Private.h"
  23          
  24          /*
  25                  *********************************************************
  26                  *                                                       *
  27                  *       Macros for internal use                         *
  28                  *                                                       *
  29                  *********************************************************
  30          */
  31          
  32          #define RETURN_IF_Y_OUT() \
  33            if (y < GUI_Context.ClipRect.y0) return;             \
  34            if (y > GUI_Context.ClipRect.y1) return;
  35          
  36          #define RETURN_IF_X_OUT() \
  37            if (x < GUI_Context.ClipRect.x0) return;             \
  38            if (x > GUI_Context.ClipRect.x1) return;
  39          
  40          #define CLIP_X() \
  41            if (x0 < GUI_Context.ClipRect.x0) { x0 = GUI_Context.ClipRect.x0; } \
  42            if (x1 > GUI_Context.ClipRect.x1) { x1 = GUI_Context.ClipRect.x1; }
  43          
  44          #define CLIP_Y() \
  45            if (y0 < GUI_Context.ClipRect.y0) { y0 = GUI_Context.ClipRect.y0; } \
  46            if (y1 > GUI_Context.ClipRect.y1) { y1 = GUI_Context.ClipRect.y1; }
  47          
  48          
  49          
  50          void LCD_DrawVLine  (int x, int y0,  int y1) {
  51   1        /* Perform clipping and check if there is something to do */
  52   1        RETURN_IF_X_OUT();
  53   1        CLIP_Y();
  54   1        if (y1<y0)
C51 COMPILER V8.05a   LCD_DRAWVLINE                                                        04/11/2008 14:19:01 PAGE 2   

  55   1          return;
  56   1        /* Call driver to draw */
  57   1        LCDDEV_L0_DrawVLine(x, y0, y1);
  58   1      }
  59          
  60          
  61          


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    159    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----       4
   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 + -