diff options
author | Littleboy | 2013-12-08 08:46:16 -0500 |
---|---|---|
committer | Littleboy | 2013-12-10 01:55:02 -0500 |
commit | fa9eb119c076e46cae9eebe93b9aabc4fd76713f (patch) | |
tree | 59c8e0045d0996168cdefbf622a9ea935712ec19 | |
parent | 60f6e9ee9328901cc4448c0fddb2b85a227be32d (diff) | |
download | scummvm-rg350-fa9eb119c076e46cae9eebe93b9aabc4fd76713f.tar.gz scummvm-rg350-fa9eb119c076e46cae9eebe93b9aabc4fd76713f.tar.bz2 scummvm-rg350-fa9eb119c076e46cae9eebe93b9aabc4fd76713f.zip |
CREATE_PROJECT: Add Graphics::Surface to natvis and register for Image Watch
-rw-r--r-- | devtools/create_project/scripts/scummvm.natvis | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devtools/create_project/scripts/scummvm.natvis b/devtools/create_project/scripts/scummvm.natvis index ffeced7cff..995668690e 100644 --- a/devtools/create_project/scripts/scummvm.natvis +++ b/devtools/create_project/scripts/scummvm.natvis @@ -15,6 +15,29 @@ --> <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> + <UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" MenuName="Add to Image Watch"/> + + <Type Name="Graphics::Surface"> + <UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" /> + </Type> + + <Type Name="Graphics::Surface"> + <Expand> + <Synthetic Name="[type]"> + <DisplayString>UINT8</DisplayString> + </Synthetic> + <Item Name="[channels]" Condition="format.bytesPerPixel==1">1</Item> + <Item Name="[channels]" Condition="format.bytesPerPixel==2">2</Item> + <Synthetic Name="[channels]" Condition="format.bytesPerPixel==4"> + <DisplayString>RGBA</DisplayString> + </Synthetic> + <Item Name="[width]">w</Item> + <Item Name="[height]">h</Item> + <Item Name="[stride]">pitch</Item> + <Item Name="[data]">pixels</Item> + </Expand> + </Type> + <Type Name="Common::Array<*>"> <DisplayString>{{size = {_size}}}</DisplayString> <Expand> |