diff options
author | Alexander Tkachev | 2016-06-29 15:40:37 +0600 |
---|---|---|
committer | Eugene Sandulenko | 2016-07-03 12:20:37 +0200 |
commit | 559ca37dafea7fa07f2453ee9221df072c501b22 (patch) | |
tree | fb8e1c602662c2c3ed3ce6cad03e66ada8570b5d /graphics/VectorRenderer.h | |
parent | 5868d6d47150f3595a499936566eafc717e63802 (diff) | |
download | scummvm-rg350-559ca37dafea7fa07f2453ee9221df072c501b22.tar.gz scummvm-rg350-559ca37dafea7fa07f2453ee9221df072c501b22.tar.bz2 scummvm-rg350-559ca37dafea7fa07f2453ee9221df072c501b22.zip |
GUI: Add VectorRendererSpec::drawTriangleClip()
Diffstat (limited to 'graphics/VectorRenderer.h')
-rw-r--r-- | graphics/VectorRenderer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h index 2af91d3587..a84062c358 100644 --- a/graphics/VectorRenderer.h +++ b/graphics/VectorRenderer.h @@ -187,6 +187,7 @@ public: * @param orient Orientation of the triangle. */ virtual void drawTriangle(int x, int y, int base, int height, TriangleOrientation orient) = 0; + virtual void drawTriangleClip(int x, int y, int base, int height, TriangleOrientation orient, Common::Rect clipping) = 0; /** * Draws a beveled square like the ones in the Classic GUI themes. @@ -390,7 +391,7 @@ public: void drawCallback_TRIANGLE(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) { //TODO uint16 x, y, w, h; stepGetPositions(step, area, x, y, w, h); - drawTriangle(x, y, w, h, (TriangleOrientation)step.extraData); + drawTriangleClip(x, y, w, h, (TriangleOrientation)step.extraData, clip); } void drawCallback_BEVELSQ(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) { //TODO |