mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-18 08:15:14 +00:00
Modifies _MOUSEX/_MOUSEY to return an integer value in SCREEN 0.
This commit is contained in:
parent
58bae219cb
commit
b5e2b06ecd
|
@ -19912,7 +19912,7 @@ void sub_mkdir(qbs *str){
|
||||||
x2=qbr_float_to_long(f);
|
x2=qbr_float_to_long(f);
|
||||||
if (x2>x) f-=0.001f;
|
if (x2>x) f-=0.001f;
|
||||||
if (x2<x) f+=0.001f;
|
if (x2<x) f+=0.001f;
|
||||||
return f;
|
return floor(f + 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
return x;
|
return x;
|
||||||
|
@ -19956,7 +19956,7 @@ void sub_mkdir(qbs *str){
|
||||||
y2=qbr_float_to_long(f);
|
y2=qbr_float_to_long(f);
|
||||||
if (y2>y) f-=0.001f;
|
if (y2>y) f-=0.001f;
|
||||||
if (y2<y) f+=0.001f;
|
if (y2<y) f+=0.001f;
|
||||||
return f;
|
return floor(f + 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
return y;
|
return y;
|
||||||
|
|
Loading…
Reference in a new issue