aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx/staticbitmap.h
diff options
context:
space:
mode:
authorEugene Sandulenko2010-08-06 13:13:25 +0000
committerEugene Sandulenko2010-10-12 22:35:55 +0000
commit47904bc7b2992189bb554833f00a79ff0fea9fb8 (patch)
tree1cec51758c6741b970bd064fafee77607b9f884f /engines/sword25/gfx/staticbitmap.h
parentca17def625154e5f758b797e4fc48c76b0566320 (diff)
downloadscummvm-rg350-47904bc7b2992189bb554833f00a79ff0fea9fb8.tar.gz
scummvm-rg350-47904bc7b2992189bb554833f00a79ff0fea9fb8.tar.bz2
scummvm-rg350-47904bc7b2992189bb554833f00a79ff0fea9fb8.zip
SWORD25: Mass-astyle.
svn-id: r53222
Diffstat (limited to 'engines/sword25/gfx/staticbitmap.h')
-rw-r--r--engines/sword25/gfx/staticbitmap.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/engines/sword25/gfx/staticbitmap.h b/engines/sword25/gfx/staticbitmap.h
index c204d8fb9d..816f2a2b20 100644
--- a/engines/sword25/gfx/staticbitmap.h
+++ b/engines/sword25/gfx/staticbitmap.h
@@ -23,7 +23,7 @@
*
*/
-/*
+/*
* This code is based on Broken Sword 2.5 engine
*
* Copyright (c) Malte Thiesen, Daniel Queteschiner and Michael Elsdoerfer
@@ -48,39 +48,40 @@ namespace Sword25 {
// Klassendeklaration
// -----------------------------------------------------------------------------
-class BS_StaticBitmap : public BS_Bitmap
-{
-friend class BS_RenderObject;
+class BS_StaticBitmap : public BS_Bitmap {
+ friend class BS_RenderObject;
private:
/**
- @remark Filename muss absoluter Pfad sein
+ @remark Filename muss absoluter Pfad sein
*/
- BS_StaticBitmap(BS_RenderObjectPtr<BS_RenderObject> ParentPtr, const Common::String& Filename);
- BS_StaticBitmap(BS_InputPersistenceBlock & Reader, BS_RenderObjectPtr<BS_RenderObject> ParentPtr, unsigned int Handle);
+ BS_StaticBitmap(BS_RenderObjectPtr<BS_RenderObject> ParentPtr, const Common::String &Filename);
+ BS_StaticBitmap(BS_InputPersistenceBlock &Reader, BS_RenderObjectPtr<BS_RenderObject> ParentPtr, unsigned int Handle);
public:
virtual ~BS_StaticBitmap();
virtual unsigned int GetPixel(int X, int Y) const;
- virtual bool SetContent(const byte *Pixeldata, unsigned int Offset, unsigned int Stride);
+ virtual bool SetContent(const byte *Pixeldata, unsigned int Offset, unsigned int Stride);
- virtual bool IsScalingAllowed() const;
- virtual bool IsAlphaAllowed() const;
- virtual bool IsColorModulationAllowed() const;
- virtual bool IsSetContentAllowed() const { return false; }
+ virtual bool IsScalingAllowed() const;
+ virtual bool IsAlphaAllowed() const;
+ virtual bool IsColorModulationAllowed() const;
+ virtual bool IsSetContentAllowed() const {
+ return false;
+ }
- virtual bool Persist(BS_OutputPersistenceBlock & Writer);
- virtual bool Unpersist(BS_InputPersistenceBlock & Reader);
+ virtual bool Persist(BS_OutputPersistenceBlock &Writer);
+ virtual bool Unpersist(BS_InputPersistenceBlock &Reader);
protected:
- virtual bool DoRender();
+ virtual bool DoRender();
private:
Common::String m_ResourceFilename;
- bool InitBitmapResource(const Common::String & Filename);
+ bool InitBitmapResource(const Common::String &Filename);
};
} // End of namespace Sword25