diff options
| author | Tom Black <[email protected]> | 2016-04-19 22:29:59 -0400 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2016-04-19 22:29:59 -0400 |
| commit | 3d6add8ef369ead9f206ddfb70745fb0422c5aed (patch) | |
| tree | 70844bf6a0cf8f8f8a85077b5fc557194ecb34be /ext | |
| parent | c4af95b3b2907405b15d7410e05bfea9690247cc (diff) | |
| download | ruby2d-3d6add8ef369ead9f206ddfb70745fb0422c5aed.tar.gz ruby2d-3d6add8ef369ead9f206ddfb70745fb0422c5aed.zip | |
Updating ruby.c
Improving some style conventions, add `flags` variable to
`S2D_CreateWindow` in preparation for actual flags to be passed
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/ruby2d/ruby2d.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/ruby2d/ruby2d.c b/ext/ruby2d/ruby2d.c index 24baeb8..1726d90 100644 --- a/ext/ruby2d/ruby2d.c +++ b/ext/ruby2d/ruby2d.c @@ -20,13 +20,13 @@ static VALUE c_data_klass; // Structures for Ruby 2D classes struct image_data { - S2D_Image* img; + S2D_Image *img; }; struct text_data { - S2D_Text* txt; + S2D_Text *txt; }; struct sound_data { - S2D_Sound* snd; + S2D_Sound *snd; }; @@ -253,9 +253,10 @@ static VALUE ruby2d_show(VALUE s) { char *title = RSTRING_PTR(rb_iv_get(self, "@title")); int width = NUM2INT(rb_iv_get(self, "@width")); int height = NUM2INT(rb_iv_get(self, "@height")); + int flags = 0; window = S2D_CreateWindow( - title, width, height, update, render, 0 + title, width, height, update, render, flags ); window->on_key = on_key; |
