Encapsulate the font bitmap

This commit is contained in:
G.K.MacGregor
2024-04-17 22:15:01 +01:00
parent 3db1815772
commit ecefa03559
3 changed files with 9 additions and 6 deletions

View File

@@ -33,8 +33,8 @@ public:
TeletextFontBitmap();
~TeletextFontBitmap();
QBitmap *rawBitmap() const { return s_fontBitmap; }
QImage *image() const { return s_fontImage; }
QBitmap charBitmap(int c, int s) const { return s_fontBitmap->copy((c-32)*12, s*10, 12, 10); }
private:
static int s_instances;