fixed anti-aliasing for graphics module

This commit is contained in:
Andreas Rumpf 2010-03-05 09:48:47 +01:00
commit a22d6b7e68
2 changed files with 132 additions and 17 deletions

View file

@ -60,7 +60,6 @@ proc definedInScope*[T](x: T): bool {.
## Special comile-time procedure that checks whether `x` is
## defined in the current scope. `x` has to be an identifier.
# these require compiler magic:
proc `not` *(x: bool): bool {.magic: "Not", noSideEffect.}
## Boolean not; returns true iff ``x == false``.
@ -844,6 +843,10 @@ proc toBiggestInt*(f: biggestfloat): biggestint {.
## rounds `f` if it does not contain an integer value. If the conversion
## fails (because `f` is infinite for example), `EInvalidValue` is raised.
proc `/`*(x, y: int): float {.inline, noSideEffect.} =
## integer division that results in a float.
result = toFloat(x) / toFloat(y)
proc addQuitProc*(QuitProc: proc {.noconv.}) {.importc: "atexit", nodecl.}
## adds/registers a quit procedure. Each call to ``addQuitProc``
## registers another quit procedure. Up to 30 procedures can be