*/}}
瀏覽代碼

new readme and remove roundf64

YimingWu 1 年之前
父節點
當前提交
0abf6a3437
共有 2 個文件被更改,包括 8 次插入4 次删除
  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);