Mercurial > projects > qtd
diff examples/opengl/hellogl/glwidget.d @ 207:71101646ab25
more D2 examples fixes
author | SokoL_SD |
---|---|
date | Tue, 14 Jul 2009 09:25:04 +0000 |
parents | 834feae7809b |
children | 8aaa84d48451 |
line wrap: on
line diff
--- a/examples/opengl/hellogl/glwidget.d Tue Jul 14 09:13:27 2009 +0000 +++ b/examples/opengl/hellogl/glwidget.d Tue Jul 14 09:25:04 2009 +0000 @@ -35,8 +35,16 @@ ** ****************************************************************************/ - -import tango.math.Math; +version(Tango) + import tango.math.Math; +else +{ + import std.math; + int rndint(real x) + { + return cast(int)rndtol(x); + } +} import qt.core.QPoint; import qt.gui.QMouseEvent;