瀏覽代碼

Fix having an extra bracket (#243)

Rob Loach 2 年之前
父節點
當前提交
3fedc2fac4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/raygui.h

+ 2 - 2
src/raygui.h

@@ -3284,8 +3284,8 @@ Vector2 GuiGrid(Rectangle bounds, const char *text, float spacing, int subdivs)
         if (CheckCollisionPointRec(mousePoint, bounds))
         if (CheckCollisionPointRec(mousePoint, bounds))
         {
         {
             // NOTE: Cell values must be the upper left of the cell the mouse is in
             // NOTE: Cell values must be the upper left of the cell the mouse is in
-            currentCell.x = floorf((mousePoint.x - bounds.x)/spacing));
-            currentCell.y = floorf((mousePoint.y - bounds.y)/spacing));
+            currentCell.x = floorf((mousePoint.x - bounds.x)/spacing);
+            currentCell.y = floorf((mousePoint.y - bounds.y)/spacing);
         }
         }
     }
     }
     //--------------------------------------------------------------------
     //--------------------------------------------------------------------