*/}}
Browse Source

new readme and remove roundf64

YimingWu 1 năm trước cách đây
mục cha
commit
0abf6a3437
2 tập tin đã thay đổi với 8 bổ sung4 xóa
  1. 4 0
      README.md
  2. 4 4
      la_tns_kernel.c

+ 4 - 0
README → README.md

@@ -6,6 +6,8 @@ LaGUI 是一个图形应用程序框架。
 
 了解更多: https://ChengduLittleA.com/lagui
 
+赞助:https://patreon.com/ChengduLittleA
+
 LaGUI 采用 GNU GPL v3 许可证,Noto 字体采用 SIL Open Font 许可证
 您将在源代码文件夹找到许可证的具体信息。
 
@@ -19,5 +21,7 @@ Copyright (C) 2022-2023 Wu Yiming
 
 Learn more about LaGUI: https://ChengduLittleA.com/lagui
 
+Support the development: https://patreon.com/ChengduLittleA
+
 LaGUI is licensed with GNU GPL v3, and Noto fonts are licensed with SIL Open Font license.
 You should be able to find details about the license in the source code directory.

+ 4 - 4
la_tns_kernel.c

@@ -4657,11 +4657,11 @@ void tnsDraw2DGrid10(real L, real R, real U, real B, real xmin, real xmax, real
         real lx=tnsInterpolate(L,R,tnsGetRatiod(xmin,xmax,x));
         tnsVertex2d(lx,U);tnsVertex2d(lx,B); x+=span;
     } tnsColor4d(LA_COLOR3(color4),color4[3]*AlphaFactor*AlphaFactor*AlphaFactor); tnsPackAs(GL_LINES);
-    x=startx; while(x<xmax){ if((((int)roundf64(x/span))%5)){ x+=span; continue; }
+    x=startx; while(x<xmax){ if((((int)round(x/span))%5)){ x+=span; continue; }
         real lx=tnsInterpolate(L,R,tnsGetRatiod(xmin,xmax,x));
         tnsVertex2d(lx,U);tnsVertex2d(lx,B); x+=span;
     } tnsColor4d(LA_COLOR3(color4),color4[3]*AlphaFactor*AlphaFactor); tnsPackAs(GL_LINES);
-    x=startx; while(x<xmax){ if((((int)roundf64(x/span))%10)){ x+=span; continue; }
+    x=startx; while(x<xmax){ if((((int)round(x/span))%10)){ x+=span; continue; }
         real lx=tnsInterpolate(L,R,tnsGetRatiod(xmin,xmax,x));
         tnsVertex2d(lx,U);tnsVertex2d(lx,B); x+=span;
     } tnsColor4d(LA_COLOR3(color4),color4[3]*AlphaFactor); tnsPackAs(GL_LINES);
@@ -4672,11 +4672,11 @@ void tnsDraw2DGrid10(real L, real R, real U, real B, real xmin, real xmax, real
         real ly=tnsInterpolate(B,U,tnsGetRatiod(ymin,ymax,y));
         tnsVertex2d(L,ly);tnsVertex2d(R,ly); y+=span;
     } tnsColor4d(LA_COLOR3(color4),color4[3]*AlphaFactor*AlphaFactor*AlphaFactor); tnsPackAs(GL_LINES);
-    y=starty; while(y<ymax){ if((((int)roundf64(y/span))%5)){ y+=span; continue; }
+    y=starty; while(y<ymax){ if((((int)round(y/span))%5)){ y+=span; continue; }
         real ly=tnsInterpolate(B,U,tnsGetRatiod(ymin,ymax,y));
         tnsVertex2d(L,ly);tnsVertex2d(R,ly); y+=span;
     } tnsColor4d(LA_COLOR3(color4),color4[3]*AlphaFactor*AlphaFactor); tnsPackAs(GL_LINES);
-    y=starty; while(y<ymax){ if((((int)roundf64(y/span))%10)){ y+=span; continue; }
+    y=starty; while(y<ymax){ if((((int)round(y/span))%10)){ y+=span; continue; }
         real ly=tnsInterpolate(B,U,tnsGetRatiod(ymin,ymax,y));
         tnsVertex2d(L,ly);tnsVertex2d(R,ly); y+=span;
     } tnsColor4d(LA_COLOR3(color4),color4[3]*AlphaFactor); tnsPackAs(GL_LINES);