diff --git a/fallback/windows-nui/src/frame_texture.cpp b/fallback/windows-nui/src/frame_texture.cpp index 1ae2ad4..034b0bc 100644 --- a/fallback/windows-nui/src/frame_texture.cpp +++ b/fallback/windows-nui/src/frame_texture.cpp @@ -1,5 +1,7 @@ #include "frame_texture.h" +#include "shim_log.h" + #include namespace nui_shim { @@ -71,6 +73,12 @@ HRESULT STDMETHODCALLTYPE NuiFrameTexture::LockRect(UINT Level, pLockedRect->Pitch = static_cast(width_ * bytes_per_pixel_); pLockedRect->size = static_cast(bits_.size()); pLockedRect->pBits = bits_.data(); + static unsigned lr = 0; + if (lr < 8) { + ShimLog("LockRect#%u %ux%u bpp=%u pitch=%d size=%d", lr, width_, height_, + bytes_per_pixel_, pLockedRect->Pitch, pLockedRect->size); + } + ++lr; return S_OK; } diff --git a/fallback/windows-nui/src/sensor_com.cpp b/fallback/windows-nui/src/sensor_com.cpp index b68d1ea..7e55518 100644 --- a/fallback/windows-nui/src/sensor_com.cpp +++ b/fallback/windows-nui/src/sensor_com.cpp @@ -1,6 +1,7 @@ #include "sensor_com.h" #include "coordmap.h" +#include "shim_log.h" namespace nui_shim { @@ -207,6 +208,12 @@ NuiSensorCom::NuiImageFrameGetDepthImagePixelFrameTexture( if (ppFrameTexture == nullptr || pImageFrame == nullptr) { return E_POINTER; } + static unsigned dpx = 0; + if (dpx < 6) { + ShimLog("NuiImageFrameGetDepthImagePixelFrameTexture call#%u (game wants extended depth)", + dpx); + } + ++dpx; if (pNearMode != nullptr) { *pNearMode = FALSE; }