mirror of https://github.com/adamdruppe/arsd.git
hacks to make it build on Windows
This commit is contained in:
parent
6c8d967086
commit
2f457a1dbe
|
|
@ -19,7 +19,15 @@ module arsd.pixmappaint;
|
|||
|
||||
import arsd.color;
|
||||
import arsd.core;
|
||||
|
||||
private float hackyRound(float f) {
|
||||
import std.math : round;
|
||||
return round(f);
|
||||
}
|
||||
|
||||
float round(float f) pure @nogc nothrow @trusted {
|
||||
return (cast(float function(float) pure @nogc nothrow) &hackyRound)(f);
|
||||
}
|
||||
|
||||
/*
|
||||
## TODO:
|
||||
|
|
|
|||
Loading…
Reference in New Issue