• R/O
  • SSH
  • HTTPS

dxruby: Commit


Commit MetaInfo

Revisión328 (tree)
Tiempo2012-07-21 10:30:34
Autormirichi

Log Message

Image.load_tiles/Image#slice_tilesの引数指定が間違っていたので修正

Cambiar Resumen

Diferencia incremental

--- branches/1.2.3/image.c (revision 327)
+++ branches/1.2.3/image.c (revision 328)
@@ -2590,10 +2590,10 @@
25902590
25912591 /* Imageクラスにクラスメソッド登録*/
25922592 rb_define_singleton_method( cImage, "load", Image_load, -1 );
2593- rb_define_singleton_method( cImage, "load_to_array", Image_loadToArray, -1 );
2594- rb_define_singleton_method( cImage, "loadToArray", Image_loadToArray, -1 );
2595- rb_define_singleton_method( cImage, "load_tiles", Image_loadToArray, -1 );
2596- rb_define_singleton_method( cImage, "loadTiles", Image_loadToArray, -1 );
2593+ rb_define_singleton_method( cImage, "load_to_array", Image_loadToArray, 3 );
2594+ rb_define_singleton_method( cImage, "loadToArray", Image_loadToArray, 3 );
2595+ rb_define_singleton_method( cImage, "load_tiles", Image_loadToArray, 3 );
2596+ rb_define_singleton_method( cImage, "loadTiles", Image_loadToArray, 3 );
25972597 rb_define_singleton_method( cImage, "create_from_array", Image_createFromArray, 3 );
25982598 rb_define_singleton_method( cImage, "createFromArray", Image_createFromArray, 3 );
25992599 rb_define_singleton_method( cImage, "load_from_file_in_memory", Image_loadFromFileInMemory, 1 );
@@ -2632,10 +2632,10 @@
26322632 rb_define_method( cImage, "slice" , Image_slice_instance, -1);
26332633 rb_define_method( cImage, "set_color_key", Image_setColorKey , 1 );
26342634 rb_define_method( cImage, "setColorKey", Image_setColorKey , 1 );
2635- rb_define_method( cImage, "slice_to_array", Image_sliceToArray , -1 );
2636- rb_define_method( cImage, "sliceToArray", Image_sliceToArray , -1 );
2637- rb_define_method( cImage, "slice_tiles", Image_sliceToArray , -1 );
2638- rb_define_method( cImage, "sliceTiles", Image_sliceToArray , -1 );
2635+ rb_define_method( cImage, "slice_to_array", Image_sliceToArray , 2 );
2636+ rb_define_method( cImage, "sliceToArray", Image_sliceToArray , 2 );
2637+ rb_define_method( cImage, "slice_tiles", Image_sliceToArray , 2 );
2638+ rb_define_method( cImage, "sliceTiles", Image_sliceToArray , 2 );
26392639 rb_define_method( cImage, "initialize_copy", Image_initialize_copy , 1 );
26402640 rb_define_method( cImage, "draw_font_ex" , Image_drawFontEx , -1 );
26412641 rb_define_method( cImage, "drawFontEx" , Image_drawFontEx , -1 );
Show on old repository browser