Fixed: Integer 32 bits conversion to 64 bits pointer
This commit is contained in:
parent
53d5e56a2a
commit
712f9ad2a0
1 changed files with 5 additions and 4 deletions
|
@ -217,7 +217,7 @@ LRESULT APIENTRY colorSwatchSubclassWndProc(
|
||||||
case WM_LBUTTONUP:
|
case WM_LBUTTONUP:
|
||||||
case WM_LBUTTONDBLCLK: {
|
case WM_LBUTTONDBLCLK: {
|
||||||
HWND hPanel = GetParent(hwnd);
|
HWND hPanel = GetParent(hwnd);
|
||||||
LONG mod = GetWindowLongPtr(hPanel,GWLP_USERDATA);
|
LONG_PTR mod = GetWindowLongPtr(hPanel,GWLP_USERDATA);
|
||||||
if (mod) {
|
if (mod) {
|
||||||
((VertexPaint*)mod)->PaletteButton(hwnd);
|
((VertexPaint*)mod)->PaletteButton(hwnd);
|
||||||
}
|
}
|
||||||
|
@ -424,9 +424,10 @@ void VertexPaint::BeginEditParams( IObjParam *ip, ULONG flags,Animatable *prev )
|
||||||
|
|
||||||
SendMessage(hParams, WM_POSTINIT, 0, 0);
|
SendMessage(hParams, WM_POSTINIT, 0, 0);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
SetWindowLongPtr(hParams,GWLP_USERDATA,(LONG_PTR)this);
|
SetWindowLongPtr(hParams,GWLP_USERDATA,(LONG_PTR)this);
|
||||||
}
|
}
|
||||||
|
|
||||||
iTint = SetupIntSpinner (hParams, IDC_TINT_SPIN, IDC_TINT, 0, 100, (int) (fTint*100.0f));
|
iTint = SetupIntSpinner (hParams, IDC_TINT_SPIN, IDC_TINT, 0, 100, (int) (fTint*100.0f));
|
||||||
|
|
||||||
|
@ -440,7 +441,7 @@ void VertexPaint::BeginEditParams( IObjParam *ip, ULONG flags,Animatable *prev )
|
||||||
|
|
||||||
// Force an eval to update caches.
|
// Force an eval to update caches.
|
||||||
NotifyDependents(FOREVER, PART_VERTCOLOR, REFMSG_CHANGE);
|
NotifyDependents(FOREVER, PART_VERTCOLOR, REFMSG_CHANGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VertexPaint::EndEditParams( IObjParam *ip, ULONG flags,Animatable *next)
|
void VertexPaint::EndEditParams( IObjParam *ip, ULONG flags,Animatable *next)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue