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.
This commit is contained in:
Arthur Moore 2015-01-09 02:12:54 -05:00
parent fedaa24799
commit 5e6cd24322
3 changed files with 5 additions and 5 deletions

View File

@ -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<std::string,filterpair> makeFilterMap()
const std::map<std::string,filterpair> makeFilterMap()
{
InsertFilter("Pixelate",Pixelate32,Pixelate);
InsertFilter("Scanlines",Scanlines32,Scanlines);

View File

@ -6,7 +6,7 @@
#include <string>
#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<FilterFunc,FilterFunc> filterpair;
typedef std::pair<std::string,filterpair> namedfilter;
//Function to make the filterMap
std::map<std::string,filterpair> makeFilterMap();
const std::map<std::string,filterpair> makeFilterMap();
//A named map of all the filters
static const std::map<std::string,filterpair> filterMap = makeFilterMap();
// static const std::map<std::string,filterpair> filterMap = makeFilterMap();
//These are the available filters

View File

@ -3,7 +3,7 @@
#ifndef INTERFRAME_HPP
#define INTERFRAME_HPP
#include "../System.h"
#include "../common/Types.h"
extern int RGB_LOW_BITS_MASK;