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

📄 guiaaarc.lst

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


C51 COMPILER V8.05a, COMPILATION OF MODULE GUIAAARC
OBJECT MODULE PLACED IN GUIAAArc.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\AntiAlias\GUIAAArc.c LARGE BROWSE MDU_F120 DEBUG OBJECTEX
                    -TEND PRINT(.\GUIAAArc.lst) OBJECT(GUIAAArc.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        : GUIArcAA.C
  16          Purpose     : Draw Arc routines with Antialiasing
  17          ----------------------------------------------------------------------
  18          Version-Date---Author-Explanation
  19          ----------------------------------------------------------------------
  20          1.00.00 000728 RS     First release of the new algorithm
  21          ----------------------------------------------------------------------
  22          Known problems or limitations with current version
  23          ----------------------------------------------------------------------
  24          None.
  25          ----------------------------------------------------------------------
  26          Open issues
  27          ----------------------------------------------------------------------
  28          None
  29          ---------------------------END-OF-HEADER------------------------------
  30          */
  31          
  32          #include "gui\Core\GUI_Protected.h"
  33          
  34          #include <stdio.h>
  35          #include <stdlib.h>
  36          #include <string.h>
  37          #include <math.h>
  38          
  39          
  40          static void _DrawArcAA (int x0, int y0, int rx, int ry, int a0, int a1) {
  41   1        int PenSizePrev = GUI_GetPenSize();
  42   1        int PenSize_AA;
  43   1        int Factor;
  44   1      
  45   1        Factor = GUI_Context.AA_HiResEnable ? 1 : GUI_Context.AA_Factor;
  46   1        /* Convert into Hires coordinates (if not already done) */
  47   1        x0 *= Factor;
  48   1        y0 *= Factor;
  49   1        rx *= Factor;
  50   1        ry *= Factor;
  51   1        PenSize_AA = PenSizePrev * GUI_Context.AA_Factor;
  52   1        GUI_AA_Init_HiRes(x0 - rx - PenSize_AA, x0 + rx + PenSize_AA);
  53   1        GUI_SetPenSize(PenSize_AA);
  54   1        GL_DrawArc(x0, y0, rx, ry,a0,a1);
C51 COMPILER V8.05a   GUIAAARC                                                             04/11/2008 14:18:16 PAGE 2   

  55   1        GUI_SetPenSize(PenSizePrev);          /* restore former pen size */
  56   1        /* Cleanup */
  57   1        GUI_AA_Exit();
  58   1      }
  59          
  60          
  61          void GUI_AA_DrawArc(int x0, int y0, int rx, int ry, int a0, int a1) {
  62   1        #if (GUI_WINSUPPORT)
                  WM_LOCK();
                  WM_ADDORG_AA(x0,y0);
                  WM_ITERATE_START(NULL) {
                #endif
  67   1        _DrawArcAA( x0, y0, rx, ry, a0, a1);
  68   1        #if (GUI_WINSUPPORT)
                  } WM_ITERATE_END();
                  WM_UNLOCK();
                #endif
  72   1      }
  73          
  74          
  75          
  76          
  77          
  78          
  79          
  80          


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