summaryrefslogtreecommitdiffstats
path: root/src/render/MBlur.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-06-30 06:45:54 +0200
committerSergeanur <s.anureev@yandex.ua>2020-06-30 06:45:54 +0200
commit1d2d5fe6ae24009dde55251bf1e38c4fd09a8e78 (patch)
tree630bc9d9ed1777a72525c43847d414d251e620f9 /src/render/MBlur.cpp
parentRestore original code of CControllerState::CheckForInput (diff)
parentRename IsAnyButtonPressed to CheckForInput (diff)
downloadre3-1d2d5fe6ae24009dde55251bf1e38c4fd09a8e78.tar
re3-1d2d5fe6ae24009dde55251bf1e38c4fd09a8e78.tar.gz
re3-1d2d5fe6ae24009dde55251bf1e38c4fd09a8e78.tar.bz2
re3-1d2d5fe6ae24009dde55251bf1e38c4fd09a8e78.tar.lz
re3-1d2d5fe6ae24009dde55251bf1e38c4fd09a8e78.tar.xz
re3-1d2d5fe6ae24009dde55251bf1e38c4fd09a8e78.tar.zst
re3-1d2d5fe6ae24009dde55251bf1e38c4fd09a8e78.zip
Diffstat (limited to 'src/render/MBlur.cpp')
-rw-r--r--src/render/MBlur.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/render/MBlur.cpp b/src/render/MBlur.cpp
index e7e2e74c..b852b912 100644
--- a/src/render/MBlur.cpp
+++ b/src/render/MBlur.cpp
@@ -1,5 +1,9 @@
#define WITHWINDOWS
+#define WITHD3D
#include "common.h"
+#ifndef LIBRW
+#include <d3d8caps.h>
+#endif
#include "RwHelper.h"
#include "Camera.h"
@@ -18,6 +22,9 @@ static RwIm2DVertex Vertex[4];
static RwIm2DVertex Vertex2[4];
static RwImVertexIndex Index[6] = { 0, 1, 2, 0, 2, 3 };
+#ifndef LIBRW
+extern "C" D3DCAPS8 _RwD3D8DeviceCaps;
+#endif
RwBool
CMBlur::MotionBlurOpen(RwCamera *cam)
{
@@ -65,12 +72,11 @@ CMBlur::MotionBlurOpen(RwCamera *cam)
if(BlurOn)
{
- int32 width = Pow(2.0f, int32(log2(RwRasterGetWidth (RwCameraGetRaster(cam))))+1);
- int32 height = Pow(2.0f, int32(log2(RwRasterGetHeight(RwCameraGetRaster(cam))))+1);
- int32 depth = RwRasterGetDepth(RwCameraGetRaster(cam));
+ uint32 width = Pow(2.0f, int32(log2(RwRasterGetWidth (RwCameraGetRaster(cam))))+1);
+ uint32 height = Pow(2.0f, int32(log2(RwRasterGetHeight(RwCameraGetRaster(cam))))+1);
+ uint32 depth = RwRasterGetDepth(RwCameraGetRaster(cam));
#ifndef LIBRW
- extern D3DCAPS8 _RwD3D8DeviceCaps;
extern DWORD _dwMemTotalVideo;
if ( _RwD3D8DeviceCaps.MaxTextureWidth >= width && _RwD3D8DeviceCaps.MaxTextureHeight >= height )
{