Permalink
Browse files

- fixed: SBar_SetClipRect had a superfluous argument resulting in inc…

…orrect behavior
  • Loading branch information...
coelckers committed Dec 4, 2018
1 parent e928b94 commit 3b5ce4ecca5d12018bf129968b1bbbd2cf1bcda6
Showing with 9 additions and 1 deletion.
  1. +8 −0 src/scripting/vm/vm.h
  2. +1 −1 src/scripting/vmthunks.cpp
@@ -637,6 +637,14 @@ struct AFuncDesc
MSVC_ASEG AFuncDesc const *const cls##_##name##_HookPtr GCC_ASEG = &cls##_##name##_Hook; \
static int AF_##cls##_##name(VM_ARGS)
#define DEFINE_ACTION_FUNCTION_NATIVE0(cls, name, native) \
static int AF_##cls##_##name(VM_ARGS); \
VMNativeFunction *cls##_##name##_VMPtr; \
static const AFuncDesc cls##_##name##_Hook = { #cls, #name, AF_##cls##_##name, &cls##_##name##_VMPtr, {} }; \
extern AFuncDesc const *const cls##_##name##_HookPtr; \
MSVC_ASEG AFuncDesc const *const cls##_##name##_HookPtr GCC_ASEG = &cls##_##name##_Hook; \
static int AF_##cls##_##name(VM_ARGS)
#define DEFINE_ACTION_FUNCTION(cls, name) \
static int AF_##cls##_##name(VM_ARGS); \
VMNativeFunction *cls##_##name##_VMPtr; \
@@ -2283,7 +2283,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(DBaseStatusBar, Fill, SBar_Fill)
return 0;
}
static void SBar_SetClipRect(DBaseStatusBar *self, int color, double x, double y, double w, double h, int flags)
static void SBar_SetClipRect(DBaseStatusBar *self, double x, double y, double w, double h, int flags)
{
self->SetClipRect(x, y, w, h, flags);
}

0 comments on commit 3b5ce4e

Please sign in to comment.