summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrederico Linhares <fred@linhares.blue>2022-05-26 10:57:08 -0300
committerFrederico Linhares <fred@linhares.blue>2022-05-26 10:57:08 -0300
commitf5534bad1f8430b769f21fa727ff29ebc539194c (patch)
treeae9da5b2c71308f5fa6adfb7678f52244ef28b71 /src
parent57f2032f1d65eadaf07eafbcd9020e8ec6bed109 (diff)
fixt Rect#align_horizontally?
* src/rect (Rect#align_horizontally?): The method was pointing to the wrong C function.
Diffstat (limited to 'src')
-rw-r--r--src/rect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rect.c b/src/rect.c
index 52c9dd4..fa02ceb 100644
--- a/src/rect.c
+++ b/src/rect.c
@@ -242,7 +242,7 @@ cg_rect_init(mrb_state *mrb)
mrb, cg_cRect, "align_vertically?", cg_cRect_align_vertically,
MRB_ARGS_REQ(1));
mrb_define_method(
- mrb, cg_cRect, "align_horizontally?", cg_cRect_align_vertically,
+ mrb, cg_cRect, "align_horizontally?", cg_cRect_align_horizontally,
MRB_ARGS_REQ(1));
mrb_define_method(
mrb, cg_cRect, "collide?", cg_cRect_collide, MRB_ARGS_REQ(1));