summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorarngo <[email protected]>2022-01-15 17:23:38 -0500
committerarngo <[email protected]>2022-01-15 17:23:38 -0500
commitd8c7c6d3faac6c3cdbe5badbb1740fee4163ce15 (patch)
tree61a61d2198292a2ab9609e7fa49f2cd4176fbae6 /src
parentac45273e487c42b6b3e62b7f8f3837ba5ba4bad5 (diff)
downloadmruby-raylib-d8c7c6d3faac6c3cdbe5badbb1740fee4163ce15.tar.gz
mruby-raylib-d8c7c6d3faac6c3cdbe5badbb1740fee4163ce15.zip
comment out broken stuff
Diffstat (limited to 'src')
-rw-r--r--src/raylib.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/raylib.c b/src/raylib.c
index c90987e..bd9e6da 100644
--- a/src/raylib.c
+++ b/src/raylib.c
@@ -36,16 +36,16 @@ mrb_draw_text(mrb_state *mrb, mrb_value self)
mrb_int x = 0;
mrb_int y = 0;
mrb_int fontSize = 16;
- mrb_value color = mrb_ary_new(mrb);
- mrb_int temp = 200;
- mrb_int temp2 = 255;
- mrb_ary_push(mrb, color, temp);
- mrb_ary_push(mrb, color, temp);
- mrb_ary_push(mrb, color, temp);
- mrb_ary_push(mrb, color, temp2);
- mrb_get_args(mrb, "|ziiio", &text, &x, &y, &fontSize);
+ //mrb_value color = mrb_ary_new(mrb);
+ //mrb_int temp = 200;
+ //mrb_int temp2 = 255;
+ //mrb_ary_push(mrb, color, temp);
+ //mrb_ary_push(mrb, color, temp);
+ //mrb_ary_push(mrb, color, temp);
+ //mrb_ary_push(mrb, color, temp2);
+ mrb_get_args(mrb, "|ziii", &text, &x, &y, &fontSize);
//mrb_value mrb_ary_ref(mrb_state *, mrb_value, mrb_int)
- Color result_color = (Color){mrb_ary_ref(mrb,color,0),mrb_ary_ref(mrb,color,1),mrb_ary_ref(mrb,color,2),mrb_ary_ref(mrb,color,3),};
+ //Color result_color = (Color){mrb_ary_ref(mrb,color,0),mrb_ary_ref(mrb,color,1),mrb_ary_ref(mrb,color,2),mrb_ary_ref(mrb,color,3),};
DrawText(text, x, y, fontSize, RED);
return mrb_nil_value();
}