diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-05-22 08:18:01 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-05-22 08:18:01 +1000 |
| commit | c8235ba0e0292f209a8233613669e2cff8de80da (patch) | |
| tree | 117df121f92601300eeb2e9a047860384eb17d79 /src/XPM.h | |
| parent | 7f8a8cfb32aecb70fe10ef26fe096f4092f7e673 (diff) | |
| download | scintilla-mirror-c8235ba0e0292f209a8233613669e2cff8de80da.tar.gz | |
Rename ColourAlpha to ColourRGBA to avoid clashes when a ColourAlpha typedef
will be published in externally visible header.
Diffstat (limited to 'src/XPM.h')
| -rw-r--r-- | src/XPM.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -18,9 +18,9 @@ class XPM { int width=1; int nColours=1; std::vector<unsigned char> pixels; - ColourAlpha colourCodeTable[256]; + ColourRGBA colourCodeTable[256]; char codeTransparent=' '; - ColourAlpha ColourFromCode(int ch) const noexcept; + ColourRGBA ColourFromCode(int ch) const noexcept; void FillRun(Surface *surface, int code, int startX, int y, int x) const; public: explicit XPM(const char *textForm); @@ -36,7 +36,7 @@ public: void Draw(Surface *surface, const PRectangle &rc); int GetHeight() const noexcept { return height; } int GetWidth() const noexcept { return width; } - ColourAlpha PixelAt(int x, int y) const noexcept; + ColourRGBA PixelAt(int x, int y) const noexcept; private: static std::vector<const char *>LinesFormFromTextForm(const char *textForm); }; @@ -65,7 +65,7 @@ public: float GetScaledWidth() const noexcept { return width / scale; } int CountBytes() const noexcept; const unsigned char *Pixels() const noexcept; - void SetPixel(int x, int y, ColourAlpha colour) noexcept; + void SetPixel(int x, int y, ColourRGBA colour) noexcept; static void BGRAFromRGBA(unsigned char *pixelsBGRA, const unsigned char *pixelsRGBA, size_t count) noexcept; }; |
