From 51a2cee8fd40ba74d1441158c81e545036a16345 Mon Sep 17 00:00:00 2001 From: Tawank Date: Fri, 17 Jan 2025 02:41:23 +0100 Subject: [PATCH] Update native_gifOpen function --- src/modules/bjs_interpreter/interpreter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/bjs_interpreter/interpreter.cpp b/src/modules/bjs_interpreter/interpreter.cpp index 39f26f33..00c23301 100644 --- a/src/modules/bjs_interpreter/interpreter.cpp +++ b/src/modules/bjs_interpreter/interpreter.cpp @@ -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;