summaryrefslogtreecommitdiffhomepage
path: root/Stars45/VideoDX9VertexBuffer.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-01-30 17:41:24 +0100
committerAki <please@ignore.pl>2022-01-30 17:41:24 +0100
commit51657e10769faa2617d546a06c42e4c62a19bb50 (patch)
tree688ad8b61ac02e50974684b9b7d3f886fb469e5f /Stars45/VideoDX9VertexBuffer.cpp
parentdb987e23d5dd33a5db8764743facbb906ac22b0f (diff)
downloadstarshatter-51657e10769faa2617d546a06c42e4c62a19bb50.zip
starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.gz
starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.bz2
Removed trailing whitespace all over the place
Diffstat (limited to 'Stars45/VideoDX9VertexBuffer.cpp')
-rw-r--r--Stars45/VideoDX9VertexBuffer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Stars45/VideoDX9VertexBuffer.cpp b/Stars45/VideoDX9VertexBuffer.cpp
index aedc41e..378265b 100644
--- a/Stars45/VideoDX9VertexBuffer.cpp
+++ b/Stars45/VideoDX9VertexBuffer.cpp
@@ -66,7 +66,7 @@ is_dynamic(false)
is_dynamic = (usage & D3DUSAGE_DYNAMIC) ? true : false;
D3DPOOL pool = is_dynamic ? D3DPOOL_DEFAULT : D3DPOOL_MANAGED;
- HRESULT hr = video->D3DDevice()->CreateVertexBuffer(len,
+ HRESULT hr = video->D3DDevice()->CreateVertexBuffer(len,
usage,
format,
pool,
@@ -102,7 +102,7 @@ VideoDX9VertexBuffer::Lock(UINT count)
if (count == 0)
count = num_verts;
-
+
if (is_dynamic) {
flags = D3DLOCK_NOOVERWRITE;
@@ -190,7 +190,7 @@ VideoDX9VertexBuffer::GetNextVert() const
VideoDX9IndexBuffer::VideoDX9IndexBuffer(VideoDX9* dx9,
UINT nind,
DWORD usage)
-: video(dx9), index_buffer(0),
+: video(dx9), index_buffer(0),
num_indices(nind), num_locked(0), next_index(0),
is_dynamic(false)
{
@@ -200,7 +200,7 @@ is_dynamic(false)
is_dynamic = (usage & D3DUSAGE_DYNAMIC) ? true : false;
D3DPOOL pool = is_dynamic ? D3DPOOL_DEFAULT : D3DPOOL_MANAGED;
- HRESULT hr = video->D3DDevice()->CreateIndexBuffer(len,
+ HRESULT hr = video->D3DDevice()->CreateIndexBuffer(len,
usage,
D3DFMT_INDEX16,
pool,
@@ -235,7 +235,7 @@ VideoDX9IndexBuffer::Lock(UINT count)
if (count == 0)
count = num_indices;
-
+
if (is_dynamic) {
flags = D3DLOCK_NOOVERWRITE;