aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/font.h
diff options
context:
space:
mode:
authorKamil Zbróg2013-11-04 11:28:10 +0000
committerKamil Zbróg2013-11-04 11:28:10 +0000
commit8c85eff622e3bcec7685b6daf44aef094b6bdb09 (patch)
tree4f95371499c7c0a144f3fa41889ccc3b57b427e5 /engines/prince/font.h
parent5d8e664b003b4d06f52500e530e0f566b3dc7139 (diff)
downloadscummvm-rg350-8c85eff622e3bcec7685b6daf44aef094b6bdb09.tar.gz
scummvm-rg350-8c85eff622e3bcec7685b6daf44aef094b6bdb09.tar.bz2
scummvm-rg350-8c85eff622e3bcec7685b6daf44aef094b6bdb09.zip
PRINCE: code formating fixed
Diffstat (limited to 'engines/prince/font.h')
-rw-r--r--engines/prince/font.h34
1 files changed, 18 insertions, 16 deletions
diff --git a/engines/prince/font.h b/engines/prince/font.h
index 629b5d61eb..8b622ce08a 100644
--- a/engines/prince/font.h
+++ b/engines/prince/font.h
@@ -25,44 +25,46 @@
#include "graphics/font.h"
namespace Graphics {
- struct Surface;
+ struct Surface;
}
namespace Common {
- class String;
+ class String;
}
namespace Prince {
class Font : public Graphics::Font {
public:
- Font();
- virtual ~Font();
+ Font();
+ virtual ~Font();
- bool load(Common::SeekableReadStream &stream);
+ bool load(Common::SeekableReadStream &stream);
- virtual int getFontHeight() const override;
+ virtual int getFontHeight() const override;
- virtual int getMaxCharWidth() const override;
+ virtual int getMaxCharWidth() const override;
- virtual int getCharWidth(byte chr) const override;
+ virtual int getCharWidth(byte chr) const override;
- virtual void drawChar(Graphics::Surface *dst, byte chr, int x, int y, uint32 color) const override;
+ virtual void drawChar(Graphics::Surface *dst, byte chr, int x, int y, uint32 color) const override;
virtual int getKerningOffset(byte left, byte right) const { return -2; }
private:
- struct ChrData {
- byte * _pixels;
- byte _width;
- byte _height;
- };
+ struct ChrData {
+ byte *_pixels;
+ byte _width;
+ byte _height;
+ };
- ChrData getChrData(byte chr) const;
+ ChrData getChrData(byte chr) const;
- byte * _fontData;
+ byte *_fontData;
};
}
#endif
+
+/* vim: set tabstop=4 expandtab!: */