diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/VectorRenderer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h index 3af682953d..f1009ea2de 100644 --- a/graphics/VectorRenderer.h +++ b/graphics/VectorRenderer.h @@ -489,6 +489,8 @@ public: */ virtual void blitSurface(Graphics::Surface *source, const Common::Rect &r) = 0; + virtual uint32 buildColor(uint8 r, uint8 g, uint8 b) = 0; + virtual void drawString(const Graphics::Font *font, const Common::String &text, const Common::Rect &area, GUI::Theme::TextAlign alignH, GUI::Theme::TextAlignVertical alignV) = 0; protected: @@ -650,6 +652,10 @@ public: src_ptr += src_pitch; } } + + virtual uint32 buildColor(uint8 r, uint8 g, uint8 b) { + return RGBToColor<PixelFormat>(r, g, b); + } protected: |