Skip to content

Commit

Permalink
(D3D) Buildfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Apr 23, 2016
1 parent 493b685 commit cc7f661
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
1 change: 0 additions & 1 deletion defines/d3d_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#if defined(HAVE_D3D9)
/* Direct3D 9 */
#include <d3d9.h>
#include "../gfx/include/d3d9/d3dx9core.h"

#define LPDIRECT3D LPDIRECT3D9
#define LPDIRECT3DDEVICE LPDIRECT3DDEVICE9
Expand Down
5 changes: 4 additions & 1 deletion gfx/common/d3d_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

#include "d3d_common.h"

#include "../include/d3d9/d3dx9core.h"

bool d3d_swap(void *data, LPDIRECT3DDEVICE dev)
{
#if defined(_XBOX1)
Expand Down Expand Up @@ -55,11 +57,12 @@ LPDIRECT3DTEXTURE d3d_texture_new(LPDIRECT3DDEVICE dev,
const char *path, unsigned width, unsigned height,
unsigned miplevels, unsigned usage, D3DFORMAT format,
D3DPOOL pool, unsigned filter, unsigned mipfilter,
D3DCOLOR color_key, D3DXIMAGE_INFO *src_info,
D3DCOLOR color_key, D3DXIMAGE_INFO *src_info_data,
PALETTEENTRY *palette)
{
HRESULT hr;
LPDIRECT3DTEXTURE buf;
D3DXIMAGE_INFO *src_info = (D3DXIMAGE_INFO*)src_info_data;

if (path)
hr = D3DXCreateTextureFromFileExA(dev,
Expand Down
2 changes: 1 addition & 1 deletion gfx/common/d3d_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ LPDIRECT3DTEXTURE d3d_texture_new(LPDIRECT3DDEVICE dev,
const char *path, unsigned width, unsigned height,
unsigned miplevels, unsigned usage, D3DFORMAT format,
D3DPOOL pool, unsigned filter, unsigned mipfilter,
D3DCOLOR color_key, D3DXIMAGE_INFO *src_info,
D3DCOLOR color_key, void *src_info,
PALETTEENTRY *palette);

void d3d_set_stream_source(LPDIRECT3DDEVICE dev, unsigned stream_no,
Expand Down
2 changes: 2 additions & 0 deletions gfx/drivers_font/d3d_w32_font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include "../font_driver.h"
#include "../../general.h"

#include "../include/d3d9/d3dx9core.h"

typedef struct
{
d3d_video_t *d3d;
Expand Down
2 changes: 2 additions & 0 deletions menu/drivers_display/menu_display_d3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

#include "../menu_display.h"

#include "../../gfx/include/d3d9/d3dx9math.h"

#define BYTE_CLAMP(i) (int) ((((i) > 255) ? 255 : (((i) < 0) ? 0 : (i))))

static const float d3d_vertexes[] = {
Expand Down

0 comments on commit cc7f661

Please sign in to comment.