From 59e9e25a5fa2754037363756e08a7a63ce83f9b5 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 23 Sep 2007 22:11:14 +0000 Subject: Added support for original copy protection, in any anyone ever wants to see it svn-id: r29067 --- engines/lure/surface.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'engines/lure') diff --git a/engines/lure/surface.h b/engines/lure/surface.h index 4fd27a4c38..e590ac9c60 100644 --- a/engines/lure/surface.h +++ b/engines/lure/surface.h @@ -52,7 +52,7 @@ public: MemoryBlock &data() { return *_data; } void loadScreen(uint16 resourceId); - void writeChar(uint16 x, uint16 y, uint8 ascii, bool transparent, uint8 colour); + int writeChar(uint16 x, uint16 y, uint8 ascii, bool transparent, uint8 colour); void writeString(uint16 x, uint16 y, Common::String line, bool transparent, uint8 colour = DIALOG_TEXT_COLOUR, bool varLength = true); void transparentCopyTo(Surface *dest); @@ -109,6 +109,18 @@ public: static bool show(); }; +class CopyProtectionDialog { +private: + Common::RandomSource _rnd; + ManagedList _hotspots; + int _charIndex; + + void chooseCharacters(); +public: + CopyProtectionDialog(); + bool show(); +}; + } // End of namespace Lure #endif -- cgit v1.2.3