From 5e6cd2432294f40c0dbf2aa2a2879d5964da4857 Mon Sep 17 00:00:00 2001 From: Arthur Moore Date: Fri, 9 Jan 2015 02:12:54 -0500 Subject: [PATCH] Temp fix so gdb works on out of tree wxvbam builds filterMap was causing wxvbam to crash when run with gdb in any folder but the top level This needs a better fix, especially since filterMap is the cornerstone of my filters redesign/integration. --- src/filters/filters.cpp | 2 +- src/filters/filters.hpp | 6 +++--- src/filters/interframe.hpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/filters/filters.cpp b/src/filters/filters.cpp index 974ef3cd..558cc2ab 100644 --- a/src/filters/filters.cpp +++ b/src/filters/filters.cpp @@ -8,7 +8,7 @@ namedfilter InsertFilter(std::string filterName, FilterFunc thirtyTwoBitFilter, } //Actually make the fitlermap (since C++11 doesn't work right now) -std::map makeFilterMap() +const std::map makeFilterMap() { InsertFilter("Pixelate",Pixelate32,Pixelate); InsertFilter("Scanlines",Scanlines32,Scanlines); diff --git a/src/filters/filters.hpp b/src/filters/filters.hpp index 100857b8..0e787c59 100644 --- a/src/filters/filters.hpp +++ b/src/filters/filters.hpp @@ -6,7 +6,7 @@ #include #include "interframe.hpp" -#include "../System.h" +#include "../common/Types.h" //sdl // Function pointer type for a filter function @@ -16,10 +16,10 @@ typedef std::pair filterpair; typedef std::pair namedfilter; //Function to make the filterMap -std::map makeFilterMap(); +const std::map makeFilterMap(); //A named map of all the filters -static const std::map filterMap = makeFilterMap(); +// static const std::map filterMap = makeFilterMap(); //These are the available filters diff --git a/src/filters/interframe.hpp b/src/filters/interframe.hpp index 8a20f4e7..e2a1443b 100644 --- a/src/filters/interframe.hpp +++ b/src/filters/interframe.hpp @@ -3,7 +3,7 @@ #ifndef INTERFRAME_HPP #define INTERFRAME_HPP -#include "../System.h" +#include "../common/Types.h" extern int RGB_LOW_BITS_MASK;