diff options
author | Peter Kohaut | 2018-02-25 19:31:52 +0100 |
---|---|---|
committer | Peter Kohaut | 2018-02-25 22:38:52 +0100 |
commit | 62b75b99908f9cf1ea60bd4dfa415395e80d5c78 (patch) | |
tree | 91f2b2b058252ea4c7d7fe8e8e4a7d71850d7099 /engines/bladerunner/ui/ui_image_picker.cpp | |
parent | 842c67fc34fdc1ff932c8cf70c768e6ad8157038 (diff) | |
download | scummvm-rg350-62b75b99908f9cf1ea60bd4dfa415395e80d5c78.tar.gz scummvm-rg350-62b75b99908f9cf1ea60bd4dfa415395e80d5c78.tar.bz2 scummvm-rg350-62b75b99908f9cf1ea60bd4dfa415395e80d5c78.zip |
BLADERUNNER: Added Generic Walker actors
Fixed isseue of duplicating items in world
Fixed fog issue with incorrect rendering in special occasions
Added basic debugger console
Refactored looping code for better readability
Diffstat (limited to 'engines/bladerunner/ui/ui_image_picker.cpp')
-rw-r--r-- | engines/bladerunner/ui/ui_image_picker.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/bladerunner/ui/ui_image_picker.cpp b/engines/bladerunner/ui/ui_image_picker.cpp index 5cee12fef8..0e00bf0484 100644 --- a/engines/bladerunner/ui/ui_image_picker.cpp +++ b/engines/bladerunner/ui/ui_image_picker.cpp @@ -23,6 +23,7 @@ #include "bladerunner/ui/ui_image_picker.h" #include "bladerunner/bladerunner.h" +#include "bladerunner/debugger.h" #include "bladerunner/font.h" #include "bladerunner/mouse.h" #include "bladerunner/shape.h" @@ -212,10 +213,11 @@ void UIImagePicker::draw(Graphics::Surface &surface) { img.shapeUp->draw(surface, img.rect.left, img.rect.top); } } -#if BLADERUNNER_DEBUG_RENDERING - surface.frameRect(img.rect, 0x7fff); - _vm->_mainFont->drawColor(Common::String::format("%d", i), surface, (img.rect.left + img.rect.right) / 2, (img.rect.top + img.rect.bottom) / 2, 0x7fff); -#endif + + if (_vm->_debugger->_viewUI) { + surface.frameRect(img.rect, 0x7fff); + _vm->_mainFont->drawColor(Common::String::format("%d", i), surface, (img.rect.left + img.rect.right) / 2, (img.rect.top + img.rect.bottom) / 2, 0x7fff); + } } } |