Skip to content

Commit

Permalink
Adding const to rect2 function parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chukobyte committed Dec 7, 2023
1 parent b0fe3b8 commit 2c9c0c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion seika/math/se_math.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SEVector2 se_math_vec2_lerp(const SEVector2* v1, const SEVector2* v2, float t) {
}

// --- Rect2 --- //
bool se_rect2_does_rectangles_overlap(SERect2* sourceRect, SERect2* targetRect) {
bool se_rect2_does_rectangles_overlap(const SERect2* sourceRect, const SERect2* targetRect) {
return (sourceRect->x + sourceRect->w >= targetRect->x) &&
(targetRect->x + targetRect->w >= sourceRect->x) &&
(sourceRect->y + sourceRect->h >= targetRect->y) &&
Expand Down
2 changes: 1 addition & 1 deletion seika/math/se_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ typedef struct SERect2 {
float h;
} SERect2;

bool se_rect2_does_rectangles_overlap(SERect2* sourceRect, SERect2* targetRect);
bool se_rect2_does_rectangles_overlap(const SERect2* sourceRect, const SERect2* targetRect);

//--- SETransform2D ---//
typedef struct SETransform2D {
Expand Down
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "seika",
"version": "0.0.2",
"version": "0.0.3",
"dependencies": [
{
"name": "sdl2",
Expand Down

0 comments on commit 2c9c0c6

Please sign in to comment.