mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-18 07:04:07 +00:00
fix small warnings
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@298 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -14,6 +14,7 @@ static void vscroll_changed(MwWidget handle, void* user, void* call) {
|
||||
int mv = MwGetInteger(handle, MwNmaxValue);
|
||||
int l = MwGetInteger(vp->frame, MwNheight);
|
||||
v = (mv - l) * (double)v / mv;
|
||||
(void)call;
|
||||
if(v < 0) v = 0;
|
||||
MwVaApply(vp->inframe,
|
||||
MwNy, -v,
|
||||
@@ -26,6 +27,7 @@ static void hscroll_changed(MwWidget handle, void* user, void* call) {
|
||||
int mv = MwGetInteger(handle, MwNmaxValue);
|
||||
int l = MwGetInteger(vp->frame, MwNwidth);
|
||||
v = (mv - l) * (double)v / mv;
|
||||
(void)call;
|
||||
if(v < 0) v = 0;
|
||||
MwVaApply(vp->inframe,
|
||||
MwNx, -v,
|
||||
|
||||
Reference in New Issue
Block a user