summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-05-09 22:03:21 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-05-09 22:03:21 +0000
commit564aa21bc1a16ca9d81e3dc93eddd0958cb493c5 (patch)
tree2d86df9b73176071dbd62509d3d9a5879f7b01f3 /src/osd
parent9216688bb17d04b1f1a4c64e9ea49d90c9b8b6ff (diff)
Removed round() hack in favor of MSVC-specific #define in winprefix.h.
Changed bilinear filter to use faster rgbutil.h version. It would be even faster if the texture code downconverted to fixed-point earlier and then used the integer values when doing the texture lookups.
Diffstat (limited to 'src/osd')
-rw-r--r--src/osd/windows/winprefix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/windows/winprefix.h b/src/osd/windows/winprefix.h
index 6e5e059ca69..14134632fc2 100644
--- a/src/osd/windows/winprefix.h
+++ b/src/osd/windows/winprefix.h
@@ -39,6 +39,7 @@ void free_file_line(void *memory, const char *file, int line);
#ifdef _MSC_VER
#define alloca _alloca
+#define round(x) floor((x) + 0.5)
#if _MSC_VER < 1500
#define vsnprintf _vsnprintf
#endif