summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2015-07-08 16:59:09 +0100
committerJose Fonseca <jfonseca@vmware.com>2015-07-08 16:59:09 +0100
commit254fdf58691e2e1e82117ec9a87ff06b700b09c2 (patch)
treeff667cc2c617cc3021c5087e450ed822b7c097a9 /helpers
parent05764e50759c8a5c2cea59285d9e8ecdbc3e1e86 (diff)
d3dtrace: Add a couple of missing formats to _getFormatSize.
Diffstat (limited to 'helpers')
-rw-r--r--helpers/d3d8size.hpp2
-rw-r--r--helpers/d3d9size.hpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/helpers/d3d8size.hpp b/helpers/d3d8size.hpp
index d105f8d5..d263e99f 100644
--- a/helpers/d3d8size.hpp
+++ b/helpers/d3d8size.hpp
@@ -54,6 +54,8 @@ _getFormatSize(D3DFORMAT Format, size_t & BlockSize, UINT & BlockWidth, UINT & B
switch ((DWORD)Format) {
+ case D3DFMT_R3G3B2:
+ case D3DFMT_A8:
case D3DFMT_P8:
case D3DFMT_L8:
case D3DFMT_A4L4:
diff --git a/helpers/d3d9size.hpp b/helpers/d3d9size.hpp
index 3ae928b5..66040cb5 100644
--- a/helpers/d3d9size.hpp
+++ b/helpers/d3d9size.hpp
@@ -60,6 +60,8 @@ _getFormatSize(D3DFORMAT Format, size_t & BlockSize, UINT & BlockWidth, UINT & B
BlockSize = 1;
break;
+ case D3DFMT_R3G3B2:
+ case D3DFMT_A8:
case D3DFMT_P8:
case D3DFMT_L8:
case D3DFMT_A4L4: