aboutsummaryrefslogtreecommitdiff
path: root/graphics/VectorRenderer.h
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-21 16:45:07 +0600
committerEugene Sandulenko2016-07-03 12:15:51 +0200
commit3d2730a0ddd1e1e33e6639775727beb954d7bfc0 (patch)
tree95fad7b305302339edad4f73fa7c0bbb0075a24c /graphics/VectorRenderer.h
parentd7278cc48b7fd9c1848da6402316663af2d0c7bd (diff)
downloadscummvm-rg350-3d2730a0ddd1e1e33e6639775727beb954d7bfc0.tar.gz
scummvm-rg350-3d2730a0ddd1e1e33e6639775727beb954d7bfc0.tar.bz2
scummvm-rg350-3d2730a0ddd1e1e33e6639775727beb954d7bfc0.zip
GUI: clippingRect propagated deeper
Diffstat (limited to 'graphics/VectorRenderer.h')
-rw-r--r--graphics/VectorRenderer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h
index e98dbc22cf..2af91d3587 100644
--- a/graphics/VectorRenderer.h
+++ b/graphics/VectorRenderer.h
@@ -173,6 +173,7 @@ public:
* @param r Radius of the corners.
*/
virtual void drawRoundedSquare(int x, int y, int r, int w, int h) = 0;
+ virtual void drawRoundedSquareClip(int x, int y, int r, int w, int h, int cx, int cy, int cw, int ch) = 0;
/**
* Draws a triangle starting at (x,y) with the given base and height.
@@ -379,7 +380,7 @@ public:
void drawCallback_ROUNDSQ(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) { //TODO
uint16 x, y, w, h;
stepGetPositions(step, area, x, y, w, h);
- drawRoundedSquare(x, y, stepGetRadius(step, area), w, h);
+ drawRoundedSquareClip(x, y, stepGetRadius(step, area), w, h, clip.left, clip.top, clip.right-clip.left, clip.bottom-clip.top);
}
void drawCallback_FILLSURFACE(const Common::Rect &area, const DrawStep &step, const Common::Rect &clip) { //TODO