(MSVC D3D9) Change gfx enum filter type to unsigned

This commit is contained in:
Twinaphex 2014-08-19 21:22:39 +02:00
parent 89cedb70df
commit 0b7fe7c9df
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
#include "render_chain.hpp" #include "render_chain.hpp"
#include <string.h> #include <string.h>
static inline D3DTEXTUREFILTERTYPE translate_filter(enum gfx_filter_type type) static inline D3DTEXTUREFILTERTYPE translate_filter(unsigned type)
{ {
if (type == RARCH_FILTER_UNSPEC) if (type == RARCH_FILTER_UNSPEC)
return g_settings.video.smooth ? D3DTEXF_LINEAR : D3DTEXF_POINT; return g_settings.video.smooth ? D3DTEXF_LINEAR : D3DTEXF_POINT;

View File

@ -119,7 +119,7 @@ void renderchain_start_render(void *data);
void renderchain_end_render(void *data); void renderchain_end_render(void *data);
bool renderchain_render(void *chain_data, const void *data, bool renderchain_render(void *chain_data, const void *data,
unsigned width, unsigned height, unsigned pitch, unsigned rotation); unsigned width, unsigned height, unsigned pitch, unsigned rotation);
D3DTEXTUREFILTERTYPE renderchain_translate_filter(enum gfx_filter_type type); D3DTEXTUREFILTERTYPE renderchain_translate_filter(unsigned type);
D3DTEXTUREFILTERTYPE renderchain_translate_filter(bool smooth); D3DTEXTUREFILTERTYPE renderchain_translate_filter(bool smooth);
bool renderchain_create_first_pass(void *data, const LinkInfo *info, PixelFormat fmt); bool renderchain_create_first_pass(void *data, const LinkInfo *info, PixelFormat fmt);
void renderchain_set_vertices(void *data, Pass &pass, void renderchain_set_vertices(void *data, Pass &pass,