diff --git a/examples/15-shadowmaps-simple/screenshot.png b/examples/15-shadowmaps-simple/screenshot.png index c499397b..2ba07f5b 100644 Binary files a/examples/15-shadowmaps-simple/screenshot.png and b/examples/15-shadowmaps-simple/screenshot.png differ diff --git a/examples/16-shadowmaps/screenshot.png b/examples/16-shadowmaps/screenshot.png index f3394bdc..05ba7d09 100644 Binary files a/examples/16-shadowmaps/screenshot.png and b/examples/16-shadowmaps/screenshot.png differ diff --git a/examples/common/entry/entry_windows.cpp b/examples/common/entry/entry_windows.cpp index c59cd3e2..f1e3635a 100644 --- a/examples/common/entry/entry_windows.cpp +++ b/examples/common/entry/entry_windows.cpp @@ -417,7 +417,7 @@ namespace entry Key::Enum key = translateKey(_wparam); if (Key::Print == key - && 0x3 == (_lparam>>30) ) + && 0x3 == ( (uint32_t)(_lparam)>>30) ) { // VK_SNAPSHOT doesn't generate keydown event. Fire on down event when previous // key state bit is set to 1 and transition state bit is set to 1. diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 141a7584..38d72c51 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -97,8 +97,21 @@ namespace bgfx { } - virtual void screenShot(const char* /*_filePath*/, uint32_t /*_width*/, uint32_t /*_height*/, uint32_t /*_pitch*/, const void* /*_data*/, uint32_t /*_size*/, bool /*_yflip*/) BX_OVERRIDE + virtual void screenShot(const char* _filePath, uint32_t _width, uint32_t _height, uint32_t _pitch, const void* _data, uint32_t _size, bool _yflip) BX_OVERRIDE { + BX_UNUSED(_filePath, _width, _height, _pitch, _data, _size, _yflip); +#if 0 + char* filePath = (char*)alloca(strlen(_filePath)+5); + strcpy(filePath, _filePath); + strcat(filePath, ".tga"); + + bx::CrtFileWriter writer; + if (0 == writer.open(filePath) ) + { + imageWriteTga(&writer, _width, _height, _pitch, _data, false, _yflip); + writer.close(); + } +#endif // 0 } virtual void captureBegin(uint32_t /*_width*/, uint32_t /*_height*/, uint32_t /*_pitch*/, TextureFormat::Enum /*_format*/, bool /*_yflip*/) BX_OVERRIDE