From 51657e10769faa2617d546a06c42e4c62a19bb50 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 30 Jan 2022 17:41:24 +0100 Subject: Removed trailing whitespace all over the place --- Stars45/VideoDX9VertexBuffer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Stars45/VideoDX9VertexBuffer.cpp') 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; -- cgit v1.1