summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp
diff options
context:
space:
mode:
authorXTra.KrazzY <XTra.KrazzY@gmail.com>2009-10-12 17:39:09 +0000
committerXTra.KrazzY <XTra.KrazzY@gmail.com>2009-10-12 17:39:09 +0000
commita887a475e3a6700f7d0cfbc6d6df5c634a953351 (patch)
tree6e289b636a7dc8101db5805ac354b60b82621291 /Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp
parentc2ae2e8d588223d34571e96071ae3a64a43ea926 (diff)
SWV: Software Video now compiles and runs on x64
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4411 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp
index 38964088a7..9a0f3fb44f 100644
--- a/Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp
+++ b/Source/Plugins/Plugin_VideoSoftware/Src/Rasterizer.cpp
@@ -49,11 +49,17 @@ inline int iround(float x)
{
int t;
+#if defined(_WIN32) && !defined(_M_X64)
__asm
{
fld x
fistp t
}
+#else
+ t = (int)x;
+ if((x - t) >= 0.5)
+ return t + 1;
+#endif
return t;
}