Skip to content

Commit

Permalink
Update native_gifOpen function
Browse files Browse the repository at this point in the history
  • Loading branch information
Tawank committed Jan 17, 2025
1 parent d1bc481 commit 51a2cee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/bjs_interpreter/interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,13 +530,13 @@ static duk_ret_t native_gifOpen(duk_context *ctx) {
duk_put_prop_string(ctx, obj_idx, "gifPointer");

duk_push_c_function(ctx, native_gifPlayFrame, 2);
duk_put_prop_string(ctx, obj_idx, "gifPlayFrame");
duk_put_prop_string(ctx, obj_idx, "playFrame");
duk_push_c_function(ctx, native_gifDimensions, 0);
duk_put_prop_string(ctx, obj_idx, "gifDimensions");
duk_put_prop_string(ctx, obj_idx, "dimensions");
duk_push_c_function(ctx, native_gifReset, 0);
duk_put_prop_string(ctx, obj_idx, "gifReset");
duk_put_prop_string(ctx, obj_idx, "reset");
duk_push_c_function(ctx, native_gifClose, 0);
duk_put_prop_string(ctx, obj_idx, "gifClose");
duk_put_prop_string(ctx, obj_idx, "close");
}

return 1;
Expand Down

0 comments on commit 51a2cee

Please sign in to comment.