diff options
author | Nicola Mettifogo | 2007-09-25 15:58:44 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-09-25 15:58:44 +0000 |
commit | 212d4ed9135a15c08b98bc2e370f289513e80274 (patch) | |
tree | b37de489dbc3eb0076f80b2beaf35d42df1d7491 /engines/parallaction/inventory.h | |
parent | d5f83fbcde14b68b953354d9998fe8f3eca3d03d (diff) | |
download | scummvm-rg350-212d4ed9135a15c08b98bc2e370f289513e80274.tar.gz scummvm-rg350-212d4ed9135a15c08b98bc2e370f289513e80274.tar.bz2 scummvm-rg350-212d4ed9135a15c08b98bc2e370f289513e80274.zip |
Changed InventoryRenderer to draw inventory over a Surface, thus removing useless drawing routines.
svn-id: r29097
Diffstat (limited to 'engines/parallaction/inventory.h')
-rw-r--r-- | engines/parallaction/inventory.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/parallaction/inventory.h b/engines/parallaction/inventory.h index 442b97b41c..6440f48aa6 100644 --- a/engines/parallaction/inventory.h +++ b/engines/parallaction/inventory.h @@ -27,6 +27,7 @@ #define PARALLACTION_INVENTORY_H +#include "graphics/surface.h" namespace Parallaction { @@ -91,9 +92,11 @@ class InventoryRenderer { Inventory *_inv; Common::Point _pos; - byte *_buffer; + Graphics::Surface _surf; protected: + void getItemRect(ItemPosition pos, Common::Rect &r); + void drawItem(ItemPosition pos, ItemName name); void refresh(); @@ -107,8 +110,9 @@ public: void hideInventory(); ItemPosition hitTest(const Common::Point &p) const; + void highlightItem(ItemPosition pos, byte color); - byte* getData() const { return _buffer; } + byte* getData() const { return (byte*)_surf.pixels; } void getRect(Common::Rect &r) const; int16 getNumLines() const; |